Closed EmhyrVarEmreis closed 6 years ago
@sabousha I do not understand. It is not a bug? I think that according to docs It should behave as I expected.
@EmhyrVarEmreis , I'm sorry -- it very well might be. I can't know without looking into it. I thought you were just being lazy. I've deleted my old post so not to clutter the thread.
@EmhyrVarEmreis this data
property is inherited using prototypal inheritance. This is working as expected, as far as I can tell. In the console, expand the proto property of the object and you should see the parent state's data.
Here's a plunker which demonstrates this: http://plnkr.co/edit/5D1qv4u2LCYlacIxByds?p=preview
This is a:
My version of UI-Router is: 1.0.0-beta.9 (from uirouter/angular-hybrid: 3.1.7)
Bug Report
I have the following states:
And I have also this transition hook:
And the problem is that in console I see only
{ param1: 'value1'}
insetad of{ param1: 'value1', param2: 'value2'}
. As far as i know, thedata
property from parent state should be inherited in child states, but it is not.