Skip to content

Commit be0fcd3

Browse files
committed
feat(package): make the toggle optional (input - isVisible) #153
1 parent f966b1c commit be0fcd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/module/component/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, ViewEncapsulation} from '@angular/core';
1+
import {Component, Input, ViewEncapsulation} from '@angular/core';
22

33
type Type = 'text' | 'password' ;
44

@@ -10,7 +10,9 @@ type Type = 'text' | 'password' ;
1010
})
1111
export class MatPassToggleVisibilityComponent {
1212

13+
@Input()
1314
isVisible: boolean;
15+
1416
_type: Type = 'text';
1517

1618
get type() {

0 commit comments

Comments
 (0)