My angular function is defined in a service somethin like,
$delegate.isConfigurable = function (product, config) {
if (product) {
///.....
}
return config.getDetail();
};
Now, on the controller, I am calling this through:
mySer.isConfigurable(null, conf);
But passing null looks a little awakard to me.
I tried calling mySer.isConfigurable(conf); but this makes conf match to first parameter of the function.
Instead, are there any other way of passing only conf ?