tips:angularjs

This is an old revision of the document!


AngularJS

Select scope of another controller (myController)

var $ascope = angular.element(
  document.querySelector("[ng-controller='myController']")
  ).scope();

See this

  • tips/angularjs.1440056188.txt.gz
  • Last modified: 2015/08/20 09:36
  • by scipio