preboot / angularjs-webpack

A complete, yet simple, starter for AngularJS using webpack
MIT License
1.71k stars 658 forks source link

I wonder how to use scope in this workflow ? #29

Closed leyayun closed 8 years ago

leyayun commented 8 years ago

How to work with scope in this workflow?

Foxandxss commented 8 years ago

You can always inject $scope. On the other hand, there is no reason to do that

phra commented 8 years ago

@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)