<!doctype html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"> </script> </head> <body> <div ng-app="testApp" ng-controller="testCtrl"> {{ title }} </div> <script> var app = angular.module("testApp",[]); app.controller("testCtrl",["$scope",function($scope){ $scope.title = "test title"; }]); </script> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more