Skip to content

Commit 9080d2c

Browse files
committed
doc(ngMock.$controller): correct controller name in bindToController example
Closes angular#12550
1 parent 728f7e2 commit 9080d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngMock/angular-mocks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ angular.mock.$RootElementProvider = function() {
18271827
*
18281828
* describe('myDirectiveController', function() {
18291829
* it('should write the bound name to the log', inject(function($controller, $log) {
1830-
* var ctrl = $controller('MyDirective', { /* no locals */ }, { name: 'Clark Kent' });
1830+
* var ctrl = $controller('MyDirectiveController', { /* no locals */ }, { name: 'Clark Kent' });
18311831
* expect(ctrl.name).toEqual('Clark Kent');
18321832
* expect($log.info.logs).toEqual(['Clark Kent']);
18331833
* });

0 commit comments

Comments
 (0)