MCPcopy Create free account
hub / github.com/angular/components / _setupAsAnchor

Method _setupAsAnchor

src/material/button/button-base.ts:223–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 }
222
223 private _setupAsAnchor() {
224 this._cleanupClick = this._ngZone.runOutsideAngular(() =>
225 this._renderer.listen(this._elementRef.nativeElement, 'click', (event: Event) => {
226 if (this.disabled) {
227 event.preventDefault();
228 event.stopImmediatePropagation();
229 }
230 }),
231 );
232 }
233}
234
235// tslint:disable:variable-name

Callers 1

ngAfterViewInitMethod · 0.95

Calls 1

listenMethod · 0.80

Tested by

no test coverage detected