AngularJS dependency injection
AngularJS dependency injection is a software design pattern in which components are given their dependencies rather than hard coding within component i.e. for reusing, maintainable and testable. Following core components are injected into other as dependencies: value: This is a javaScript object used to pass values to controller during config phase. factory: This is used […]