I am using angular 4. when routing from one component to another component 
ngOninit not invoking. i have tried different methos but no use.

While routing to this component ngOnint called i have tested using console 
but its not printed. but when i refresh the page it will load the ngOninit.

I am using sessionstorage to retrive datas. i need to display retrived 
datas to html while routing from one component to another component.

Original code stackoverflow link 
here: https://stackoverflow.com/q/46462531/5028339

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to