Within my service, the Angular function is defined as follows:
$delegate.isConfigurable = function (product, config) {
if (product) {
///.....
}
return config.getDetail();
};
When calling this function in the controller:
mySer.isConfigurable(null, conf);
I find passing null
to be a bit awkward.
I attempted to call mySer.isConfigurable(conf);
but this caused conf
to match with the first parameter
of the function.
Is there another method for only passing conf
?