Skip to content

Instantly share code, notes, and snippets.

@buildmotion
Created May 25, 2018 14:16
Show Gist options
  • Save buildmotion/7136a015d017b425367004038c38495e to your computer and use it in GitHub Desktop.
Save buildmotion/7136a015d017b425367004038c38495e to your computer and use it in GitHub Desktop.
Workspace library dependencies.
import { Injectable } from '@angular/core';
import { LibTwoService } from '../../../lib-two/src/public_api';
@Injectable({
providedIn: 'root'
})
export class LibOneService {
constructor(
private serviceTwo: LibTwoService
) { }
SayHello(message: string): string {
// return `${message}`;
return this.serviceTwo.SayHello(message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment