<!--you can include HTML content using the ng-include directive:--> <!doctype html> <html ng-app> <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"></script> </head> <body> <div> <!--Include html File--> <div ng-include="'myFile.htm'"></div> <!--Include AngularJS File--> <div ng-app="myApp" ng-controller="customersCtrl"> <div ng-include="'myTable.htm'"></div> </div> <script> var app = angular.module('myApp', []); app.controller('customersCtrl', function($scope) { $scope.names = [ {Name: 'Dj', Country: 'India'}, {Name: 'SJ', Country: 'Canada'} ]; }); </script> </div> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more