阅读背景:

如何在AngularJS中共享一个控制器的$scope变量?

来源:互联网 

I have this:

我有这个:

app.controller('foo1', function ($scope) {
  $scope.bar = 'foo';
});
app.controller('foo2', function ($scope) {
  // want to access the $scope of foo1 here, to access bar
});
app.controller('foo1', f



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: