Project

General

Profile

1
import { Component } from '@angular/core';
2

    
3
import { ApiService } from './shared';
4

    
5
import '../style/app.scss';
6

    
7
@Component({
8
  selector: 'my-app', // <my-app></my-app>
9
  templateUrl: './app.component.html',
10
  styleUrls: ['./app.component.scss'],
11
})
12
export class AppComponent {
13
  url = 'https://github.com/preboot/angular2-webpack';
14
  title: string;
15

    
16
  constructor(private api: ApiService) {
17
    this.title = this.api.title;
18
  }
19
}
(5-5/7)