Commit 8a357aaef406544d48b4bc8b5a38861850aa5fa2
1 parent
b81d0f8a
Exists in
master
and in
34 other branches
Remove the addition of auth controller as an angular controller
Showing
2 changed files
with
2 additions
and
6 deletions
Show diff stats
src/app/components/navbar/navbar.ts
1 | import {Component, Inject} from "ng-forward"; | 1 | import {Component, Inject} from "ng-forward"; |
2 | 2 | ||
3 | 3 | ||
4 | -import {Session, AuthService, IAuthEvents} from "./../auth"; | 4 | +import {Session, AuthService, AuthController, IAuthEvents} from "./../auth"; |
5 | import {User} from "./../../models/interfaces"; | 5 | import {User} from "./../../models/interfaces"; |
6 | 6 | ||
7 | @Component({ | 7 | @Component({ |
@@ -46,7 +46,7 @@ export class Navbar { | @@ -46,7 +46,7 @@ export class Navbar { | ||
46 | openLogin() { | 46 | openLogin() { |
47 | this.modalInstance = this.$modal.open({ | 47 | this.modalInstance = this.$modal.open({ |
48 | templateUrl: 'app/components/auth/login.html', | 48 | templateUrl: 'app/components/auth/login.html', |
49 | - controller: 'AuthController', | 49 | + controller: AuthController, |
50 | controllerAs: 'vm', | 50 | controllerAs: 'vm', |
51 | bindToController: true | 51 | bindToController: true |
52 | }); | 52 | }); |
src/app/index.ts
@@ -28,10 +28,6 @@ NoosferoApp.addConstants("AUTH_EVENTS", AUTH_EVENTS); | @@ -28,10 +28,6 @@ NoosferoApp.addConstants("AUTH_EVENTS", AUTH_EVENTS); | ||
28 | NoosferoApp.addConfig(noosferoModuleConfig); | 28 | NoosferoApp.addConfig(noosferoModuleConfig); |
29 | NoosferoApp.run(noosferoAngularRunBlock); | 29 | NoosferoApp.run(noosferoAngularRunBlock); |
30 | 30 | ||
31 | -// NoosferoApp.addService("Session", Session); | ||
32 | -// NoosferoApp.addService("AuthService", AuthService); | ||
33 | -NoosferoApp.addController("AuthController", AuthController); | ||
34 | - | ||
35 | require("./components/noosfero/noosfero.service.js"); | 31 | require("./components/noosfero/noosfero.service.js"); |
36 | require("./components/noosfero/profile-image/profile-image.component.js"); | 32 | require("./components/noosfero/profile-image/profile-image.component.js"); |
37 | 33 |