Skip to content

Instantly share code, notes, and snippets.

@matheuscas
Created January 30, 2017 02:45
Show Gist options
  • Save matheuscas/43344b112eff89d89e1fe36c8e4bfae6 to your computer and use it in GitHub Desktop.
Save matheuscas/43344b112eff89d89e1fe36c8e4bfae6 to your computer and use it in GitHub Desktop.

Revisions

  1. matheuscas created this gist Jan 30, 2017.
    14 changes: 14 additions & 0 deletions app.component.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    import { Service2 } from './service2.service';
    import { Component } from '@angular/core';

    @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css'],
    providers: [Service2]
    })
    export class AppComponent {
    title = 'app works!';

    constructor(private service2: Service2){}
    }