<html ng-app="myApp">
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
</head>
<body ng-controller="myCtrl as xx">
<h1>Hello {{ xx.name }}</h1>
<p>3 + 4 = {{ 3 + 4 }}</p>
</body>
</html>
var app = angular.module('myApp', []);
app.controller('myCtrl', function() {
this.name = 'Chris';
});
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.