<script src="~/Scripts/angular.js"></script>
<script type="text/javascript">
angular.module('myApp', [])
.controller('MyCtrl', [function () {
this.FirstName = 'Mithilesh ';
this.LastName = 'Kumar ';
}]);
</script>
<body ng-app="myApp" ng-controller="MyCtrl as ctrl">
<b>Full Name:</b> {{ctrl.FirstName}}
{{ctrl.LastName}}
</body>
Output:
No comments:
Post a Comment