Skip to content

Instantly share code, notes, and snippets.

@buildmotion
Created May 25, 2018 14:11
Show Gist options
  • Save buildmotion/fa5e0fcd57fc1aac70f81711591e2943 to your computer and use it in GitHub Desktop.
Save buildmotion/fa5e0fcd57fc1aac70f81711591e2943 to your computer and use it in GitHub Desktop.
Demonstrates using a library from new Angular 6 Workspace in Component
import { Component } from '@angular/core';
import { LibOneService } from 'projects/lib-one/src/public_api';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app';
constructor(
private oneService: LibOneService
) {
this.title = this.oneService.SayHello("Angular 6 Workspace")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment