input output ionic
// In child.ts
import {Output, EventEmitter} from '@angular/core';
export class ChildComponent {
...
@Output() typeChanged = new EventEmitter<string>();
type = "got";
emit() {
this.typeChanged.emit(this.type);
}
}
// parent.html
<div>
<component (typeChanged)="onTypeEmitted($event)"></component>
<div>
// In parent.ts
export class ParentComponent {
...
onTypeEmitted(type: string) {
// do something with 'type'
}
}
Also in JavaScript:
- mute video javascript
- convert data into json format in javascript
- nsenter
- how to proxy enable in server nodejs
- jquery clear file input
- cli run js
- facebook integration in node.js
- how to set background colour i js inline stylel
- node module export multiple functions
- create and append element in javascript
- switch case in js
- react ctx
- bootstrap 4 form validator with jquery
- javascript closure stack overflow
- how to move up in terminal
- redux import connect
- returned data has p tags react
- lodash pascal case
- route react
- get random numbers javascript
- tilt js vue
- js datetime format
- react documentation
- parseint js