I have a simple factory
.factory('currentLanguageFactory', function () {
'use strict';
var currentLanguage = {
language: 'it_IT'
};
return {
currentLanguage: currentLanguage,
zzzzzzz: function (lang) {
console.log('asdas');
},
trololol: "dfsdfsdf"
};
})
but it doesn't return any functions. In fact the result that I get inside
the controller is:
{"currentLanguage":{"language":"it_IT"},"trololol":"dfsdfsdf"}
and zzzzzzz function seems like it doesn't exsist at all. I've already
tried returning it in many other ways, but still returning all variables,
but any functions.
What is going on here...
--
You received this message because you are subscribed to the Google Groups
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.