Closed leyayun closed 8 years ago
You can always inject $scope. On the other hand, there is no reason to do that
@leyayun look at (this)[https://docs.angularjs.org/guide/component#comparison-between-directive-definition-and-component-definition]. scopes are being deprecated in favor of isolated components and 1-way data flow. (e.g. angular2 doesn't have scope concept)
How to work with scope in this workflow?