Monday, 15 September 2014

angularjs - Can't resolve dependency for module function (restangular.IProvider) -


I am trying to set up the transgenor for the SPA project, but I as a dependency with the Kadahi-SNSG Unable to solve. I have installed it using the keyboard (and definitely defined TSD for definitions).

Hard work configuration

  tsng: {options: {extension: ".ng.ts"}, Dev: {files: [TODO: Based on the conference Automate the generation of configs {src: ["client / app / ** / *. Ts", "! ** / * .ng.ts"], Dest: "client / app"}]}},  

module apt

  /// & lt; Reference path = ".. /../typings/tsd.d.ts" /> Module app {var dependency = ["ui.router", "ui.bootstrap", "transjunal" ...]; Function Configuration ($ stateProvider: ng.ui.istateProvider, $ urlRouterProvider: ng.ui.IUrlRouterProvider, RestangularProvider: restangular.IProvider, & lt; - Here it fails ...  

Ts D.ts (Reference File)

  /// & lt; reference path = "restangular / restangular.d.ts" />  

  is running "tsng: dev" (tsng) function Warning: Error: Module function with name restangular.IProvider release dependency can not be resolved for App.config .  

Other dependencies, such as ui-router , ui-bootstrap < / Em> etc. are working fine.What can be the reason for this? GRANT-TNSG?

Okay, I have understood it.

> While executing Kadahi-SNSG, it scans all the dependencies / modules etc. so that they can be hooked to angles automatically so that you do not own it Apply: Apply: Dependency to identify your own (e.g. Where you have a TypeScript compliance code, such as classes in your module) can be defined by their name. Example:

  Constructor (Service: MyModule.IMyService) {}  

External dependencies, e.g. The angle itself is declared with '$' notation, content-ssg will assume that their dependencies are resolved on runtime and thus they are hooked in their name:

  Constructor ($ routeProvider: ng.IRouteService) {}  

But now the services in the transnors are not called '$ tranzinger', but only 'thrangular' it moves towards:

  • While declaring it 'invisible', grunt-tsng is your No one searches and fails in module, no one searches and fails
  • When declaring it as $$$, the angular provider will be called '$ tranjanagar', no one searches

Conclusion:

This is dim.


No comments:

Post a Comment