In AngularDart 3.0.0, EventEmitter is deprecated. So how to send an event from a child component to a parent?
Before updating, it looks like this:
@Component(
selector: 'my-test',
templateUrl: 'test.component.html'
)
class TestComponent {
@Input()
String name = '';
@Output()
EventEmitter<String> onNameChange = new EventEmitter<String>();
}
...
onNameChange.emit('New Name');
...
Now I need to use Stream and StreamController. Can someone give an example?
source
share