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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -