Skip to content

Instantly share code, notes, and snippets.

@luisangelma
Created July 21, 2015 03:04
Show Gist options
  • Select an option

  • Save luisangelma/a4375e4c5f4af2cdcc13 to your computer and use it in GitHub Desktop.

Select an option

Save luisangelma/a4375e4c5f4af2cdcc13 to your computer and use it in GitHub Desktop.
Angular Setup
<!DOCTYPE html>
<html ng-app="mainApp">
<head>
<title>Angular Setup</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body ng-controller="mainController">
<div class="jumbotron">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h2>{{ name }}</h2>
</div>
</div>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<input type="text" ng-model="name"></input>
</div>
</div>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
<script type="text/javascript">
var app = angular.module('mainApp', []);
app.controller('mainController', function ($scope) {
$scope.name = 'Angel Marquez';
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment