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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -