Ahh thanks... managed to get it working!

On Wednesday, 1 March 2017 15:36:34 UTC, Sander Elias wrote:
>
> Hi,
>
> Probably your 'store'  is not holding the value 'nike'
>
> Try this:
> function checkInventory() {
>
>     var inventoryRequestObject = DataService.getFormData();
>     var store = inventoryRequestObject.store;
>     var code = inventoryRequestObject.code;
>     var size = inventoryRequestObject.size;
>
>     // Check store
>     if (store === 'nike') {
>         return checkStore(code, size);
>     } else {
>         return Promise.reject("not a nike store")
>     }
> }
>
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to