Skip to content

Instantly share code, notes, and snippets.

@matheuscas
Created January 30, 2017 02:38
Show Gist options
  • Select an option

  • Save matheuscas/e2a3b829ace44f58e8e3793a52a4b36f to your computer and use it in GitHub Desktop.

Select an option

Save matheuscas/e2a3b829ace44f58e8e3793a52a4b36f to your computer and use it in GitHub Desktop.

Revisions

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

    @Injectable()
    export class Service2 {

    constructor(private service1: Service1) { }

    do(){
    this.service1.doSomethingFromService1();
    console.log('after service 1 function');
    }

    }