Closed
Description
Controller is instantiated multiple times when navigating to a state that uses a date parameter. If date parameter is optional controller is instantiated 3 times else twice.
This is my state definition:
.state('stateName', {
url: '/{id:int}/{childId:int}?{date:date}',
params: {
childId: null,
date: null
},
resolve: {
...
},
controller: '...',
templateUrl: '...'
});
P.s: I'm using 0.2.17 version