<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <script src="https://cdn.staticfile.org/angular.js/1.6.3/angular-animate.min.js"></script> <title>Document</title> </head> <body ng-app="myApp" ng-controller="recordCtr"> {{name}} </body> <script> var app = angular.module("app", []); app.controller("recordCtr", ["$scope", "$http", "$location", function($scope, $http, $location) { $scope.name = '13123' }]) </script> </html>