Skip to content
Advertisement

Tag: angular-services

What is the proper way to update a parent component with a shared service in ngOnInit – Angular 13

I’ve come across a situation a few times where I use a shared service in a component’s ngOnInit to update a value in another component, which just so happens to be a parent. This results in the infamous Error: NG0100: Expression has changed after it was checked in development mode, and change detection will not pick up the change. I

Advertisement