Created
May 22, 2020 04:31
-
-
Save Sourabhhsethii/3385be35e0bb93bdde510f2cf8f6d161 to your computer and use it in GitHub Desktop.
AppComponent
This file contains 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, Inject, Output, EventEmitter } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
title = 'Angular Series A6 : Stylying'; | |
@Output() update = new EventEmitter(); | |
constructor( | |
@Inject('sharedservices') public sharedservices){ | |
} | |
onUpdate(id, text){ | |
this.sharedservices.update(id, text); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment