Created
May 25, 2018 14:11
-
-
Save buildmotion/fa5e0fcd57fc1aac70f81711591e2943 to your computer and use it in GitHub Desktop.
Demonstrates using a library from new Angular 6 Workspace in Component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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