Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which version you're using?
Message
 
 
À
24/09/2015 11:59:19
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01624940
Message ID:
01625045
Vues:
44
>>>Someone said the fix didn't work in 0.2.8 but was OK in 0.2.10. I think the current version is 0.2.15
>>>I'd guess only ui-router would need to be updated - angularjs is not the problem......
>>>
>>
>>Notify didn't work for me in 0.2.8 and this is the only version which is offered through Nuget package.
> >Do I need to still download it manually?
>
>AFAICS the current version on NuGet is the one I have (0.2.15)
>
> >Also, I'm using go and not transitionTo - does it matter?
>

What is the exact name of it? It was only offering me 0.2.08, so I uninstalled it.

It only offers 02.08 for me again. See attached picture in VS 2015.


UPDATE. I tried the other link and it did offer 0.2.15, so I'll try it now.

>Don't know - $state.go supports the notify parameter so I guess it should.
>
>But looking at the current documentation ( http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state ) I see a $state.reload. Snip:
>
>"A method that force reloads the current state. All resolves are re-resolved, controllers reinstantiated, and events re-fired."
>Sounds like that might be what you need ?

I am not sure - it go with reload option is supposed to be the same thing? My current method is the following:
var createNew = function (createDaily) {
                $scope.selections.selectedId = 0;
                $scope.selections.typeDescription = '';

                if ($scope.searchParameters.departmentId != 0) {
                    window.console && console.log('Going to department state...')
                    $state.go('department', { departmentId: $scope.searchParameters.departmentId, createDaily: createDaily },
                        { reload: true, inherit: true, notify: true });
                }
                if ($scope.searchParameters.categoryId != 0) {
                    window.console && console.log('Going to category state...')
                    $state.go('category', { categoryId: $scope.searchParameters.categoryId, createDaily: createDaily },
                        { reload: true, inherit: true, notify: true });
                }
                if ($scope.searchParameters.itemId != 0) {
                    window.console && console.log('Going to item state...')
                    $state.go('item', { itemId: $scope.searchParameters.itemId, createDaily: createDaily },
                        { reload: true, inherit: true, notify: true });
                }

                if ($scope.searchParameters.subCategoryId != 0) {
                    window.console && console.log('Going to subCategory state...')
                    $state.go('subCategory', { subCategoryId: $scope.searchParameters.subCategoryId, createDaily: createDaily },
                        { reload: true, inherit: true, notify: true });
                }

                if ($scope.showSearchControls) {
                    window.console && console.log('Going to new state...')
                    $state.go('new', {}, { reload: true });
                }
                //       $scope.$parent.showSearch = false; // hide the search form
            }
What am I supposed to change it to?

Thanks again.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform