docs(layout): fix media matcher code snippet (#7475)

This commit is contained in:
Will Howell
2017-10-02 19:02:51 -04:00
committed by Kara
parent bd5d9dce0e
commit 6ab275cbd0
+1 -1
View File
@@ -9,7 +9,7 @@ matchMedia method, if available on the platform.
export class MyWidget {
constructor(mm: MediaMatcher) {
mm.matchMedia('(orientation: landscape)').matches ?
this.setPortraitMode() :
this.setLandscapeMode() :
this.setPortraitMode();
}
}