{

Learn free Material tutorials


Angular 12 Setup Mock API and consume and return data

December 1, 2022 ·  7 min read

In this post, You will learn how to create a Simple mock API to return json data in Angular application without creating a backend API Sometimes, We want to test data components using API code, if there is no backend code, This tutorial explains How to create a Backend REST API for mock data which returns json objects in the Angular application. First Create an angular application First, check angular CLI or not using ng -version...


Angular material Snackbar tutorials | mat-snackbar examples

December 1, 2022 ·  7 min read

Contents What is snackbar UI component? Angular Snackbar Configuration Import MatSnackBarModule into the angular application Simple Basic component Notification message Action button with a message Duration Snackbar Position panelClass custom css styles - color,font Passing data with the openFromComponent method Stackblitz complete example You can see my previous about Angular button click event example What is snackbar UI component?...


How to create an angular model class or interface in Angular?

December 1, 2022 ·  4 min read

In this post, This post covers a step-by-step tutorial in Angular. How to create a model class in an angular application using CLI or manually? How to generate a model interface in a typescript application using CLI or manually? When to use class or interfaces for models in Angular applications? Initialize the model class with an array of objects in typescript Display model classes data in the angular template file Angular is a front-end UI framework that holds the information from the browser and sends it to Database....


Subscribe
You'll get a notification every time a post gets published here.