File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ import {
17
17
} from '@angular/core' ;
18
18
import { CommonModule } from '@angular/common' ;
19
19
import { Dir , MdError } from '../core' ;
20
+ import { coerceBooleanProperty } from '../core/coersion/boolean-property' ;
21
+
20
22
21
23
/** Exception thrown when two MdSidenav are matching the same side. */
22
24
export class MdDuplicatedSidenavError extends MdError {
@@ -80,9 +82,7 @@ export class MdSidenav {
80
82
@Input ( )
81
83
get opened ( ) : boolean { return this . _opened ; }
82
84
set opened ( v : boolean ) {
83
- // TODO(jelbourn): this coercion goes away when BooleanFieldValue is removed.
84
- let booleanValue = v != null && `${ v } ` !== 'false' ;
85
- this . toggle ( booleanValue ) ;
85
+ this . toggle ( coerceBooleanProperty ( v ) ) ;
86
86
}
87
87
88
88
You can’t perform that action at this time.
0 commit comments