Posts

Showing posts from May, 2018

Insert update Delete in Angular.

Hello friends in this article i will show you an example of Insert update Delete in Angular. Step 1: Create an employee folder in AngularCrud/src/app/ Step 2: Now Create Model folder in  employee folder. Step 3: Now Create  employee.ts file in Model folder to create employee model.       export class employee { code : number ; name : string ; gender : boolean ; annualSalary : number ; dateOfBirth : Date ; } Step 4: Now Create  Employee.Service.ts under employee Folder  to create employee service for http request to call WebApi. import { Injectable } from '@angular/core' ; import { Http , Response } from '@angular/http' ; import { Headers , RequestOptions } from '@angular/http' ; / import { Observable , of } from 'rxjs' ; import { Router } from '@angular/router' ; import { employee } from './Model/employee' ; @ Injectable () export class EmployeeService {

How to setup angular in windows?

Hello friends in this article i will show you how to setup angular. So read this article till the end. Step1: install latest version of nodejs from https://nodejs.org/en/download . Step2: Install latest version of AngularCLI: npm install -g @angular/cli type node -v to check node version in cmd. type ng -v to check angular version in cmd. step3:  Install VisualStudio Code Editor  from   https://code.visualstudio.com/download . step4: Now type ng new AngularCrud  --skip-tests true   to create new angular project in  AngularCrud  folder in C drive you can also choose any other drive as per your wish   . step 5: Now type cd AngularCrud to go in to the  AngularCrud Folder.   step 6: Now type Code . to open the project in    VisualStudio Code Editor. Now you have sucessfully Installed and setup angular in your computer. step 7: To run your project in default browser type ng serve -o  in cmd.