Reputation: 7969
I have to build basic sample in angularjs but it seems not working there. I am not getting what I am doing wrong. fiddle
var myApp = angular.module('myApp', []);
myApp.controller('myCtrl', function($scope) {
$scope.name = "my name";
})
Upvotes: 0
Views: 49
Reputation: 1652
var myApp = angular.module('myApp',[]);
myApp.controller('myCtrl',function($scope){
$scope.name= "jitender";
})
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<div ng-app="myApp">
<div data-ng-controller="myCtrl">
{{name}}
</div>
</div>
Upvotes: 0
Reputation: 25352
Follow like the Image
Upvotes: 1