This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Input, Directive, TemplateRef, ViewContainerRef, OnDestroy } from '@angular/core'; | |
/** | |
* How to use this directive? | |
* | |
* ``` | |
* <div *mqIf="'(min-width: 500px)'"> | |
* Div element will exist only when media query matches, and created/destroyed when the viewport size changes. | |
* </div> | |
* ``` | |
*/ |