I am new to Angular and trying to show data using controller but its not showing.. I think i have made some silly mistake and data is not coming without error.
Here is JS:
(function () {
'use strict';
var app = angular.module('empapp', []).controller('emplcontroller', ['$scope', function ($scope) {
$scope.empdatateamdynamo = [
{
name: 'name will be here',
profilepic: 'image will be here',
designation: 'designation will be here',
teamname: 'team will be here'
},
{
name: 'name will be here',
profilepic: 'image will be here',
designation: 'designation will be here',
teamname: 'team will be here'
},
{
name: 'name will be here',
profilepic: 'image will be here',
designation: 'designation will be here',
teamname: 'team will be here'
}
]
}]);
})();
HTML is here:
<body ng-app="empapp">
<div class="container" ng-controller="emplcontroller">
<!-- Example row of columns -->
<div class="row">
<div class="col-md-4" ng-repeat="items in empdatateamdynamo">
<h2> {{ empdatateamdynamo.name }}</h2>
<p> {{ empdatateamdynamo.profilepic }} </p>
<p> {{ empdatateamdynamo.designation }} </p>
<p><a class="btn btn-default" href="#" role="button"> {{ empdatateamdynamo.teamname}}</a></p>
</div>
</div>
</div>
</body>