How can I disable a child state in angular UI-router from inheriting its parent state's data?
For example, I have a parent and child state as follows:
$stateProvider.state('parent', {
data:{
customData1: "Hello",
}
})
.state('parent.child', {
data:{
}
});
Here the child state(parent.child) inherits the data(customData1) of its parent.
How can I disable it from inheriting parent's data?