angular - Get value observable directly without subscribing to it -


i have activatedroute instance 'route'

alert(this.route.data) gets me [object object].

thats route configuration object:

  { path: 'create', component: mycomponent, data :{ firstname: 'pascal'} }, 

i want directly firstname within component!

how can that?

when have activated route there not need subscribe static data, how data then?


Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -