---------------------------Scope-------------------------------- https://docs.angularjs.org/guide/scope What are Scopes? Scope is an object that refers to the application model. It is an execution context for expressions. Scopes are arranged in hiera…
/** * Created by Answer1215 on 12/21/2014. */ angular.module('app', []) .controller('FirstCtrl' , function(){ var vm = this; vm.message = "I am the first controller"; }) .controller('SecondCtrl', function() { var vm = this; vm.message = "I…