var app = angular.module('plunker', []);
app.controller('FirstCtrl', function($scope) {
this.name = 'FirstCtrl';
});
app.controller('SecondCtrl', function() {
this.name = 'SecondCtrl';
});
app.controller('ThirdCtrl', function() {
this.name = 'ThirdCtrl';
});
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<meta charset="utf-8" />
<title>AngularJS Plunker</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="style.css" />
<script data-require="angular.js@1.2.x" src="https://code.angularjs.org/1.2.25/angular.js" data-semver="1.2.25"></script>
<script src="app.js"></script>
</head>
<body>
<div ng-controller="FirstCtrl as first">
<p>{{first.name}}</p>
<div ng-controller="SecondCtrl as second">
<p>
{{first.name}}<br/>
{{second.name}}
</p>
<div ng-controller="ThirdCtrl as third">
<p>
{{first.name}}<br/>
{{second.name}}<br/>
{{third.name}}
</p>
</div>
</div>
</div>
</body>
</html>
/* Put your css in here */