tips:angularjs

This is an old revision of the document!


AngularJS

tutorials

Select scope of another controller (myController)

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

See this

  • tips/angularjs.1439983238.txt.gz
  • Last modified: 2015/08/19 13:20
  • by scipio