• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to footer

DRH

My site

Dilip

TypeScript common Syntax

June 21, 2020 by Dilip Leave a Comment

We can make the enumerations object immutable by using the freeze function
const Direction = {
  north: 0,
  east: 1,
  south: 2,
  west: 3
};
Object.freeze(Direction);

And to check that some object is freeze or not we use the frozen object.
if (Object.isFrozen(Direction)){
  console.log ('Direction is immutable.');
} else {
  console.log ('Direction is mutable.');
}

Filed Under: Uncategorized

Setting Up Ngrx store with the Ngrx schematics

May 18, 2020 by Dilip Leave a Comment

code to create the ruducers which includes StoreModeul in the app.module.ts is
ng generate store AppState --root --module app.module.ts

Create action in particular folder creating auth action in auth folder

ng generate action auth/Auth

Filed Under: Uncategorized

AngularPipe

April 28, 2020 by Dilip Leave a Comment

There are several angular pipe the main task of pipe is to take data and transformed into the suitable form to show in the template this is done in html template there are several types of pipes like:
1. uppercase or lowercase
{{propertyName | uppercase |lowercase}}
2. datepipe like shortDate, short,shortTime
3. slice : this is to say that where to start the string and where to end to display the desired result.
5. number: this pipe is to show that how many number is should shown before decimal and after decimal.

6.percentage: this pipe is used to show the data to dispaly in percentage like data is .025 shows 25 percent if percentage pipe is used.

Filed Under: Uncategorized

To create repository in github

April 28, 2020 by Dilip Leave a Comment

This is the link so study steps in this link to create repository in github

https://help.github.com/en/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line

Filed Under: Uncategorized

Adding Bootstrap and JQuery in angular

April 8, 2020 by Dilip Leave a Comment

For adding Bootstrap in angular there is already bootstap included in the angular 9 in node_modules folder. otherewise dowload using npm via folloing command
npm install --save bootstrap
install JQuery via
npm install --save jquery

After the installation of the bootstrap and jquery we must have to include in our project.So for this go to the angular.json file and then paste in styles
“styles”:[ “./node_modules/bootstrap/dist/css/bootstrap.css” ]

“scripts”: [ “./node_modules/jquery/dist/jquery.js”, “./node_modules/bootstrap/dist/js/bootstrap.js”]

Filed Under: AngularWithBootstrap

How to Kill the process of ng serve command which still used the port 4200 .

April 8, 2020 by Dilip Leave a Comment

For Linux Users:
sudo kill $(sudo lsof -t -i:4200)
Also u could try
sudo kill `sudo lsof -t -i:4200`

For All Operating System go to https://stackoverflow.com/questions/39091735/port-4200-is-already-in-use-when-running-the-ng-serve-command

Filed Under: Uncategorized

  • Page 1
  • Page 2
  • Page 3
  • Next Page »

Primary Sidebar

Recent Posts

  • TypeScript common Syntax
  • Setting Up Ngrx store with the Ngrx schematics
  • AngularPipe
  • To create repository in github
  • Adding Bootstrap and JQuery in angular

Recent Comments

  • Dilip on Understanding Angular Versioning
  • Dilip on Understanding Angular Versioning
  • Sagar on error: No such host is known. While installing Dot net packages
  • Sagar on Digitalization Program in Province no. 1 Nepal
  • Dilip on error: No such host is known. While installing Dot net packages

Archives

  • June 2020
  • May 2020
  • April 2020
  • February 2020
  • January 2020

Footer

Artificial Intelligence And Machine Learning

Artificial intelligence is the Huge interdisplinery field which includes the social science,psychology and all in cognitive with the computer.Artificial intelligence means human like intelligence wich can think and process logic and gives decision.

Web Application Development

Web applications are those like websites wich is opend by browsers. Nowadays more than desktop application web application is growing because of internet available in all the remote places and data is managed easily.

Internet of things(IOT)

Internet of things is the technology wich are main technolgy to make smart home,smart city,and smart profession.You can make your work comfortable with remote sensors internet and many networking interface.like microcontroller,bluetooth module ethernet module internt,web technology

Copyright © 2021 · Genesis Sample on Genesis Framework · WordPress · Log in

  • Education
  • Computer Technology