Thursday, 7 February 2019

angularjs - What's the equivalent of state params (Angular 1 & ui-router) in Angular 2?

In Angular 1 and ui-router I used states params a lot to pass data from one state to another (without using URL parameters). Is it possible in Angular 2?



Router, RouteParams, RouterLink and RouteData does not seem to handle this for instance I want to pass a user object from one state to another







this does not seem possible in Angular 2.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print ...