Skip to main content

Posts

Showing posts with the label execute a multiple ng-app

how to execute angular a multiple ng-app in sequence?

The AngularJs code-sample  Click for live demo result 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 //The angularjs code-sample.     var app1 = angular .module( 'myApp1' , []);      app1.controller( "app1Controller" , function ($scope) {        $scope.empApp1 = {          empName: 'Anil Singh'        };      });      var app2 = angular.module( 'myApp2' , []);      app2.controller( "app2Controller" , function ($scope) {        $scope.empApp2 = {          empDept: 'IT'        };      });      angular.element(document).ready( function () {      ...