mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(tab-nav): add constructor back for ripple (#3537)
This commit is contained in:
committed by
tinayuangao
parent
9849c53c70
commit
f27617a58b
@@ -4,10 +4,12 @@ import {
|
||||
ViewChild,
|
||||
ElementRef,
|
||||
ViewEncapsulation,
|
||||
Directive,
|
||||
Directive, NgZone, Inject, Optional,
|
||||
} from '@angular/core';
|
||||
import {MdInkBar} from '../ink-bar';
|
||||
import {MdRipple} from '../../core/ripple/index';
|
||||
import {ViewportRuler} from '../../core/overlay/position/viewport-ruler';
|
||||
import {MD_DISABLE_RIPPLES} from '../../core/ripple/ripple';
|
||||
|
||||
/**
|
||||
* Navigation component matching the styles of the tab group header.
|
||||
@@ -79,4 +81,9 @@ export class MdTabLink {
|
||||
'[class.mat-tab-link]': 'true',
|
||||
},
|
||||
})
|
||||
export class MdTabLinkRipple extends MdRipple {}
|
||||
export class MdTabLinkRipple extends MdRipple {
|
||||
constructor(elementRef: ElementRef, ngZone: NgZone, ruler: ViewportRuler,
|
||||
@Optional() @Inject(MD_DISABLE_RIPPLES) forceDisableRipples: boolean) {
|
||||
super(elementRef, ngZone, ruler, forceDisableRipples);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user