ngMock.angular.mock.inject

Improve this Doc View Source angular.mock.inject

  1. function in module ngMock

NOTE: This function is also published on window for easy access.
NOTE: This function is declared ONLY WHEN running tests with jasmine or mocha

The inject function wraps a function into an injectable function. The inject() creates new instance of 登录查看完整内容