angularjs - Exposing all dependencies to view ES6 Angular -
this question kind of asked here in 1 of comments under answer no 1 seems have commented or answered.
i started converting es5 code use es6 javascript in 1 of angular projects , noticed when injecting dependencies, use syntax:
constructor($http, someservice) { this.$http = $http; this.someservice = someservice; }
what don't understand doesn't expose services/dependencies view controller bound to? view have access someservice , properties.
Comments
Post a Comment