Skip to content

Instantly share code, notes, and snippets.

Created July 18, 2017 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/133d18fe8bad412f51da1659bb9a1172 to your computer and use it in GitHub Desktop.
Save anonymous/133d18fe8bad412f51da1659bb9a1172 to your computer and use it in GitHub Desktop.
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",
}
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