Github in-memory-web-api Installing Store npm install @ngrx/store Sub Slice of State Initialize Reducer Defining State and Action Building Reducer To Process Building a Reducer to
NgRx Beginers Intro – Part 01
Why we use NgRx ? When we build an application,we may use service to define some state we retain for our product pages. Redux Pattern
Node App File Structure
Model-Routes-Controllers-Services-Code-Structure user.model.js var mongoose = require(‘mongoose’) const UserSchema = new mongoose.Schema({ name: String }) const User = mongoose.model(‘User’, UserSchema) module.exports = User; user.routes.js var express
Angular Observable, Subject, BehaviourSubject, ReplaySubject
Observable : – When we do subscribe the observable will start the trigger (Observer exist inside the observable) constructor() { var obs$ : Observable =
Angular Lazy Loading
Lazy Loaded Module Example in Angular 8|7 with loadChildren & Dynamic Imports Lazy loading is the process of loading some features of your Angular application
Angular Directive
There are 3 types of directives: Components Attribute Directives Structural Directives 1. Components – A component directive requires a view along with its attached behaviour.This
Angular Common Difference
1.Difference between ViewChild & ViewChildren The @ViewChild and @ViewChildren decorators in Angular provide a way to access and manipulate DOM elements, directives and components. You
JavaScript Block Scope
Variables declared with the “var” keyword can not have Block Scope. Variables declared inside a block {} can be accessed from outside the block. Example
Arrow Function : What About this?
The handling of “this” is also different in arrow functions compared to regular functions. In short, with arrow functions there are no binding of “this”.
Javascript this keyword – What is ‘this’?
The JavaScript “this” keyword refers to the object it belongs to. It has different values depending on where it is used: 1. In a method,