Created
August 19, 2018 14:50
-
-
Save RayLuxembourg/b8ce0e9e9e72a424e11f1bc7977dd7d7 to your computer and use it in GitHub Desktop.
Component using resolver
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
export class ProductComponent implements OnInit { | |
product: Product; | |
constructor(private route: ActivatedRoute) {} | |
ngOnInit() { | |
this.product = this.route.snapshot.data['product']; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment