Skip to content

Instantly share code, notes, and snippets.

@sampepose
sampepose / gist:8278249
Created January 6, 2014 04:27
Factory with $injector example
angular.module("myModule", [
"module.that.contains.serviceA"
]
).factory("myFactory", ["$injector", function ($injector) {
return {
example: function () {
var serviceA = $injector.get("serviceA");
serviceA.visible = false;
}
}