angularjs - Very strange unknown provider error from ui-router -
i have unknown provider issue , have tried placing breakpoints see being caused from. have checked work against other work have done see if there stupid mistakes can't see any. i'd appreciate help.
here attempt @ debugging:
has come across before?
if need post code.
thanks
///<reference path="../../../../typings/angular.d.ts" /> ///<reference path="loginservice.ts" /> module app { export function logindirective(): ng.idirective { return { restrict: 'e', templateurl: '/scripts/controllers/common/login.html', scope : {}, controller: 'logincontroller', controlleras: 'vm', bindtocontroller: true }; } export class logincontroller { static $inject = ['$scope', '$http', 'loginservice']; public constructor( private $scope: ng.iscope, private $http: ng.ihttpservice, private spinnerservice: any, private loginservice: loginservice){ } } } angular.module("app") .controller("logincontroller", app.logincontroller) .directive("login", app.logindirective);
///<reference path="../../../../typings/angular.d.ts" /> ///<reference path="_common.ts" /> module app { export class loginservice { private signedin: boolean; private token: string; constructor(signedin: boolean, token: string) { this.signedin = false; this.token = ""; } } } angular.module("app") .service('loginservice', app.loginservice);
Comments
Post a Comment