I am new to Angularjs but I believe I am past the basics and trying to understand some best practices now. With that said I am looking at a code, which I cannot fully understand:
ciApp = angular.module("myApp", ["$strap.directives", "ngCookies"]).
config(["$provide", function (e) {
e.value("appVersion", "1.0"),
e.value("appSupportUrl", "https://myknowledgeb as.com/")
}
]).
value("$anchorScroll", null).
value("$location", null).
run(["$rootScope", "version", "$log", function (n, ) {
log.log("Starting my app")
}
]);
What is the difference between calling module.config(["$provide", function (e) and setting services on the $provider and module().value("", ...)? And is there a difference at all?
Also is value("$anchorScroll", null) the best way to disable the $anchorScroll service?
Thanks