I have md-autocomplete
:
The better way to access the controller methods is to target the element and then use the jqLite object to gain access to the controller:
var $acElement = angular.element(document.getElementById('Auto'));
var acCtrl = $acElement.controller('mdAutocomplete');
acCtrl.hidden = true;
Whenever you access anything using the scope()
method on an angular element, your implementation will break if you ever want to disable angular debug info.