Skip to content

Commit

Permalink
feat(package): make the toggle optional (input - isVisible) #153
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Mar 25, 2019
1 parent f966b1c commit be0fcd3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Component, ViewEncapsulation} from '@angular/core';
import {Component, Input, ViewEncapsulation} from '@angular/core';

type Type = 'text' | 'password' ;

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

@Input()
isVisible: boolean;

_type: Type = 'text';

get type() {
Expand Down

0 comments on commit be0fcd3

Please sign in to comment.