This file contains hidden or 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
// Adapted from https://stackoverflow.com/questions/34848505/how-to-make-a-loading-animation-in-console-application-written-in-javascript-or | |
/** | |
* Create and display a loader in the console. | |
* | |
* @param {string} [text=""] Text to display after loader | |
* @param {array.<string>} [chars=["⠙", "⠘", "⠰", "⠴", "⠤", "⠦", "⠆", "⠃", "⠋", "⠉"]] | |
* Array of characters representing loader steps | |
* @param {number} [delay=100] Delay in ms between loader steps | |
* @example |
This file contains hidden or 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 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'; |