How do you manually inject an instance in angular dart? This would be the equivalent to the following in angularjs:
var myInjector = angular.injector(["ng"]);
var $http = myInjector.get("$http");
How do you manually inject an instance in angular dart? This would be the equivalent to the following in angularjs:
var myInjector = angular.injector(["ng"]);
var $http = myInjector.get("$http");
The approach of using _injector.get(RatingConfig) will work.
As an example, the filter code calls 'get' explicitly on the injector to get an instance of a filter: lib/core/filter.dart, line 50
If you need to manually inject an instance because your are in the main() method, you can do the following:
A code example from inside a component.