Skip to content

Instantly share code, notes, and snippets.

View yogesh-aggarwal's full-sized avatar

Yogesh Aggarwal yogesh-aggarwal

View GitHub Profile
@yogesh-aggarwal
yogesh-aggarwal / material.module.ts
Last active July 18, 2020 06:27
Import all the angular-material components.
// IMPORT ALL MATERIAL COMPONENTS
// #STEPS
// 1- Import this file as module in app.module.ts ==> import { MaterialModule } from './xyz/abc';
// 2- Initialize it in imports:[] array ==> imports:[MaterialModule]
import { NgModule } from '@angular/core';
// *************** FORM CONTROLS ***************
import { MatAutocompleteModule } from '@angular/material/autocomplete';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatDatepickerModule } from '@angular/material/datepicker';
// ElectronJS basic window
import { app, BrowserWindow } from "electron";
let win: BrowserWindow;
function loadWindow() {
win = new BrowserWindow({
width: 1080,
height: 760,