javascript - Dependency injection in angular 1 typescript project -


i trying use angular-jwt typescript in angular1 project. installed angular-jwt using

typings install dt~angular-jwt --global 

i have in typings>globals>angular-jwt there no angular-jwt in typings.json file. problem?

also , error: module ngjwtauth not available! while try use dependency.

import * angular 'angular'; import 'angular-jwt';  angular.module('app', ['ngjwtauth']); 

any idea how fix this?

this happens because ngjwtauth module wasn't defined.

module's name angular-jwt, not ngjwtauth.

the absence of package in typings.json problem because won't installed cloned repo. save package in typings.json it should be

typings install dt~angular-jwt --global --save 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -