Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

AngularJS Includes

<!--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>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.