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

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -