angularjs - Modify scope variables outside the controller -


is possible modify $scope variables on button click if button outside controller area?

for example:

<input type="button> <div ng-controller="meetingsctrl"> 

using classes or ids find elements not how things typically done in angular.

a controller typically defined on top-level element of each view. if button belongs view managed meetingsctrl, should inside div. however, maybe button part of view, in case need 2 views interact each other. done via services, each controller injecting same service. or use events.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -