Created
July 18, 2017 16:06
-
-
Save anonymous/133d18fe8bad412f51da1659bb9a1172 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { Title } from '@angular/platform-browser'; | |
@Component({ | |
moduleId: module.id, | |
selector: 'my-app', | |
templateUrl:'dashboard.component.html' | |
}) | |
export class AppComponent { | |
public constructor(private titleService: Title) | |
{} | |
ngOnInit() | |
{ | |
this.titleService.setTitle('Dashboard'); | |
} | |
user_name: string = "Ysidro", | |
user_tipe: string = "Perstamista", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component} from '@angular/core'; | |
import {Title} from '@angular/platform-browser'; | |
@Component({ | |
moduleId: module.id, | |
selector: 'my-app', | |
templateUrl: 'dashboard.component.html' | |
}) | |
export class DashboardComponent { | |
user_name: string = 'Ysidro'; | |
user_tipe: string = 'Perstamista'; | |
public constructor(private titleService: Title) { | |
} | |
ngOnInit() { | |
this.titleService.setTitle('Dashboard'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment