Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Named parameters in JavaScript and angularJs
Message
De
19/05/2015 02:32:51
 
 
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01619934
Message ID:
01619966
Vues:
28
>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)......
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform