Skip to content

Instantly share code, notes, and snippets.

View KaranPato's full-sized avatar
🏠
Working from home

Karan Patokar KaranPato

🏠
Working from home
View GitHub Profile
@KaranPato
KaranPato / app.component.ts
Created August 24, 2019 07:09
Main component .ts file.
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'AngularMaterialDemo';
}
@KaranPato
KaranPato / recepi-list.component.html
Created August 23, 2019 04:51
HTML for Recipe list.
<div class="container-fluid">
<div>
<button *ngIf="!isAdd" mat-raised-button color="primary" class="btn-right mt-2" [routerLink]="['/add-update-recepi', 0]">Add Recipe</button>
</div>
<div class="container">
<mat-grid-list cols="3" rowHeight="500px">
<mat-grid-tile *ngFor="let data of dataSource">
<div class="container">
<mat-card class="example-card">
<mat-card-header>