You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
But 'MyDirective' is the registered name of the directive, not the controller. Nowhere in the docs for $controller does it say that $controller will look up a controller by the name of a directive that binds to it. Is this a mistake in the docs?
The text was updated successfully, but these errors were encountered:
The example is showing you how to test "bind-to-controller" stuff, without having to rely on the $compile service. This was asked for. So, if you scroll down a bit further, the entire example shows you how you can completely set up mock bindings.
The top portion of the example is referring to your application code, whereas further down, it's a simple test case which only needs to use the $controller service to get the job done.
The docs for ngMock.$controller
give an example of it's invocation as
Then,
But 'MyDirective' is the registered name of the directive, not the controller. Nowhere in the docs for $controller does it say that $controller will look up a controller by the name of a directive that binds to it. Is this a mistake in the docs?
The text was updated successfully, but these errors were encountered: