>>Hi everybody,
>>
>>I'm trying to figure out the syntax here for the $state.go method. I want to pass the third parameter options.
>>
>>Here is my current call which is wrong:
>>
>>
>>$state.go('edit.' + viewName, {reload: $scope.invoicesObject.reload});
>>
>>I need to somehow supply the options third parameter in this call, but I don't know how to bypass the second parameter.
>>
>>Thanks in advance.
>>
>>UPDATE. Never mind, I didn't need it anyway.
>
>For future reference : if you don't need a named parameter then just omit it (and the order of named parameters does not matter)......
I found some threads on stackoverflow which showed it's not really simple. In any case, I eventually realized that the solution I was trying to implement with the view re-loading was way too complicated while a simple broadcast was all I needed (and that was already implemented in the update case but for some reason was commented out in the new case).
If it's not broken, fix it until it is.
My Blog