factory(name, providerFunction); See $provide.factory(). Parameters
name Name of the module.
service(name, constructor); See $provide.service(). Parameters
config(configFn); Use this method to register work which needs to be performed on module loading. For more about how to configure services
component(name, options); See $compileProvider
Page 2 of 2