()
| 92 | } |
| 93 | |
| 94 | constructor() { |
| 95 | // Automatically prevent form submission. |
| 96 | if (this.element.tagName === 'BUTTON' && !this.element.hasAttribute('type')) { |
| 97 | this.element.setAttribute('type', 'button'); |
| 98 | } |
| 99 | |
| 100 | if (typeof ngDevMode === 'undefined' || ngDevMode) { |
| 101 | afterRenderEffect({ |
| 102 | read: () => { |
| 103 | const violations: string[] = []; |
| 104 | if (this._tabList && this._tabList._tabsParent) { |
| 105 | if (!this._tabList._tabsParent._panelMap().has(this.value())) { |
| 106 | violations.push( |
| 107 | `ngTab with value '${this.value()}' does not have a corresponding ngTabPanel.`, |
| 108 | ); |
| 109 | } |
| 110 | } |
| 111 | reportViolations(violations, this.element); |
| 112 | }, |
| 113 | }); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | ngOnInit() { |
| 118 | this._tabList._collection.register(this); |
nothing calls this directly
no test coverage detected