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

java - unable show chart in xls document using jasper reports -

javascript - How to change image src on success AJAX -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -