Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div ng-app="myApp">
- <input type="text" ng-model="message" />
- <h1>{{ message }}</h1>
- <div ng-controller="ctrlOne">
- <input type="text" ng-model="message" />
- <h1>{{ message }}</h1>
- </div>
- <div ng-controller="ctrlTwo">
- <input type="text" ng-model="message" />
- <h1>{{ message }}</h1>
- </div>
- </div>
- var app = angular.module("myApp", []);
- app.controller("ctrlOne", function($scope) {
- console.dir($scope);
- });
- app.controller("ctrlTwo", function($scope) {
- console.dir($scope);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement