Created
June 6, 2020 08:29
-
-
Save thisiszoaib/6403802e0134c420a438d39c22a9583a to your computer and use it in GitHub Desktop.
Card view 9
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 { Component } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'] | |
}) | |
export class AppComponent { | |
title = 'Card View Demo'; | |
gridColumns = 3; | |
toggleGridColumns() { | |
this.gridColumns = this.gridColumns === 3 ? 4 : 3; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment