ngMock.$componentController
Improve this Doc View Source $componentController
- service in module ngMock
A service that can be used to create instances of component controllers. Useful for unit-testing.
Be aware that the controller will be instantiated and attached to the scope as specified in the component definition object. If you do not provide a $scope
ob