Angular - Controllers

by Amanda Williamson

HTML

<div ng-app>
    <input type="text" ng-model="data.message" />
    <h1>{{data.message}}</h1>
    <div ng-controller="FirstCtrl">
        <input type="text" ng-model="data.message" />
        <h1>{{data.message}}</h1>
    </div>
    <div ng-controller="SecondCtrl">
        <input type="text" ng-model="data.message" />
        <h1>{{data.message}}</h1>
    </div>
</div>

JavaScript

function FirstCtrl($scope) {     
}

function SecondCtrl($scope) {     
}