AngularJS-14 Introduction

 AngularJS Tutorial for Beginners

coding-zon-AngularJS14-Introduction

 

This Angular 14 tutorial will be covering the latest version of the Angular framework and look at all the fundamentals, including the following topics.

  •     Angular CLI
  •     Components,
  •     Module
  •     Services
  •     Datatype
  •     Data binding
  •     Arrays
  •     Functions
  •     Directives
  •     Events
  •     Forms
  •     HTTP
  •     Routing


Introduction


Angular is a platform and framework for building single-page client applications using HTML and TypeScript.
Angular is written in Typescript. It uses full features of Typescript decorators, types, and other high level concepts of it.

Angular is a component-based framework for building scalable web applications in an enterprise business world, It includes routing, forms, management client-server communications and more.
Angular allows to develop, build, test, and update your code.

Why Angular

  • It is supported and managed by Google
  • Angular using Typescript.
  • Using Declarative UI  is a component based )
  • Supports PWA & SPA.
  • Simplified MVC Pattern.
  • Code Consistency and Easy Testing.


Table of Contents

  1.  Requirements
  2.  Installing Angular CLI(Command Line Interface) on Windows
  3.  Create Angular Project
  4.  Running server
  5. Opening Angular Project.



1. Requirements

To Install AngularJS14, you need node. If already installed node, jump to next step.

Install latest version node and npm.

Ex: 

  • node version - 16 plus.
  • npm - version 8 plus.

If not having download node from here 


The Node.js installer includes the npm (Node package manager).

If any issues with npm, while installing angular, update it or re-install it.

 

C:\> npm install npm@latest -g

C:\> npm update -g npm

 Top

2. Installing Angular CLI(Command Line Interface) on Windows


CLI is a tool that allows you to manage, Angular applications directly from a command shell.

C:\>npm install -g @angular/cli


Open command window and paste this command at prompt and press enter. No matter in which folder you are in. It is installed globally, from any directory you can access ng commands.
After finished installation, at command line, just type  ng command with given options as shown below.

C:\>ng --version

C:\>ng --help

 

3. Create Angular Project

 

 C:\> ng new myApp

 ToC

4. Running server (local within the project)

Navigate to project and start server

C:\>cd myApp

C:\myApp>ng serve 

or

Using npm command

C:\myApp> npm run start


5. Open Angular Project

Open a Browser and type the URL given  below.

http://127.0.01:4200

or

http://localhost:4200
 

 Top⬆

 




Comments

Popular posts from this blog

Using javascript pass form variables to iframe src

Creating a new PDF by Merging PDF documents using TCPDF

Import excel file into mysql in PHP