Commit e882651c1e796212ec76c198a8767ebdcae60310
Exists in
master
and in
34 other branches
Merge branch 'ngforward' of softwarepublico.gov.br:noosfero-themes/angular-theme into ngforward
Showing
2 changed files
with
2 additions
and
6 deletions
Show diff stats
src/app/components/navbar/navbar.ts
1 | 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 | 5 | import {User} from "./../../models/interfaces"; |
6 | 6 | |
7 | 7 | @Component({ |
... | ... | @@ -46,7 +46,7 @@ export class Navbar { |
46 | 46 | openLogin() { |
47 | 47 | this.modalInstance = this.$modal.open({ |
48 | 48 | templateUrl: 'app/components/auth/login.html', |
49 | - controller: 'AuthController', | |
49 | + controller: AuthController, | |
50 | 50 | controllerAs: 'vm', |
51 | 51 | bindToController: true |
52 | 52 | }); | ... | ... |
src/app/index.ts
... | ... | @@ -28,10 +28,6 @@ NoosferoApp.addConstants("AUTH_EVENTS", AUTH_EVENTS); |
28 | 28 | NoosferoApp.addConfig(noosferoModuleConfig); |
29 | 29 | NoosferoApp.run(noosferoAngularRunBlock); |
30 | 30 | |
31 | -// NoosferoApp.addService("Session", Session); | |
32 | -// NoosferoApp.addService("AuthService", AuthService); | |
33 | -NoosferoApp.addController("AuthController", AuthController); | |
34 | - | |
35 | 31 | require("./components/noosfero/noosfero.service.js"); |
36 | 32 | require("./components/noosfero/profile-image/profile-image.component.js"); |
37 | 33 | ... | ... |