Answer the question
In order to leave comments, you need to log in
How can you pass a variable to a factory?
How can I pass the "sql" argument to the factory?
And how it is possible to address then to function through the controler?
searchApp.factory('DataProvider',function($http,$q){
return {
getManufactures:getManufactures(),
getCategoryTree:getCategoryTree(),
getProducts:getProducts(sql),
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question