I am trying to bind the data from angular controller but its not bading rather than it's showing expression i have included angular.js in my layout but it's not working below is the code please help me
File name: Home.cshtml
<div class="container" ng-app="home">
<div class="container">
<div class="panel-group row" ng-controller="Eventapp">
<div class="panel col-lg-4" ng-repeat="product in products">
<div class="panel-heading">
<h3>{{product.heading}}</h3>
</div>
<div class="panel-body">
<ul>
<li ng-repeat="content in product.contents">
{{content}}
</li>
</ul>
</div>
<div class="panel-footer">
<button class="btn btn-success">contact us</button>
</div>
</div>
</div>
Angular controller :Eventappcontroller.js
'use strict';
var home = angular.module('home', []);
home.controller('Eventapp', function ($scope) {
$scope.products = [
{ heading: 'School', Contents: ['Semi-English', 'Semi-English', 'Semi-English'] },
{ heading: 'School', Contents: ['Semi-English', 'Semi-English', 'Semi-English'] },
{ heading: 'School', Contents: ['Semi-English', 'Semi-English', 'Semi-English'] },
{ heading: 'School', Contents: ['Semi-English', 'Semi-English', 'Semi-English'] },
{ heading: 'School', Contents: ['Semi-English', 'Semi-English', 'Semi-English'] }
]
})
Scripts included in layout page bottom ---> before end of body tag
<script src="~/Scripts/angular.min.js"></script>
<script src="~/Scripts/angular.js"></script>
<script src="~/Scripts/jquery-1.10.2.js"></script>
<script src="~/Scripts/controller/EventappController.js"></script>
<script src="~/Scripts/jquery-1.10.2.min.js"></script>
Output: {{product.heading}} {{content}} Here will be button
.minversion of scripts at the same time.