AngularJS-2-fundamentals.pptx and angular

katariraju71 2 views 20 slides Mar 11, 2025
Slide 1
Slide 1 of 20
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20

About This Presentation

angular


Slide Content

Angular 2 : CRUD Operations Dhananjay Kumar @ debug_mode

Important points Tweet your experience about webinar using the hashtag #Infragistics or tag @ infragistics to win cool goodies from us. Recording of webinar will be available by Wednesday on Infragistics blog. You will also get Email notification for uploaded recording We welcome all of you to take advantage of a FREE 30 Day Trial by downloading the product at: http://www.infragistics.com/products/ultimate/download Please reach out to us at [email protected] for any follow up questions you may have. We welcome the opportunity to assist you. http :// www.infragistics.com/community/blogs/dhananjay_kumar/default.aspx

Agenda Routing Component Services Form Form validation

I am Dhananjay Kumar Infragistics Developer Evangelist 7 times Microsoft MVP @debug_mode [email protected] http :// debugmode.net

Environment used VS Code TypeScript NodeJS and NPM Using starter project from https:// github.com/DanWahlin/Angular2-JumpStart

Why AngularJS 2 ? https:// angular.io/features.html

Building blocks of Angular 2

Modules Angular apps are composed of modules . Modules export things — classes, function, values — that other modules import . Usually Module has a single purpose and it export one thing such as Component class. Applications are collection of modules with each module has a one specific task. Although modules are highly recommended, it is optional to use in creating AngularJS 2 app Module name is same as the file name without extension. Usually Modules exports Component classes, Services, Pipes etc. Angular provides various Modules Libraries such as, @angular/core , @angular/common , @angular/router etc.

Modules Exporting a Component from the Module Module can export component class , value, function etc. Module name is same as the file name without extension Importing other Module’s Component Angular libraries modules can be imported without a path prefix To import user modules, path prefix is required

Bootstrap main component app/ main.ts Index.html

Components A Component is a main building block of an AngularJS 2 application An application may have any number of Components Data and logic can be created or brought on the page using Components custom elements can be created or brought on the page using Components

Components

Components

Components Step 1: Create a typescript class with properties and behavior Step 2 : Decorate class with Component metadata Step 3: Import statement- importing required modules to create this component. Step 4 : To use, either bootstrap the component or use as directive in another components

Components Template TemplateUrl Directives Providers Styles StyleUrls Pipes Selector etc. Metadata

Binding

Child Component

Q& A ?

Ignite UI = jQuery library from IG http:// www.igniteui.com

What Infragistics can offer you? We welcome all of you to take advantage of a FREE 30 Day Trial by downloading the product at: http:// www.infragistics.com/products/ultimate/download Please reach out to us at [email protected] for any follow up questions you may have. We welcome the opportunity to assist you. For technical queries send me email at [email protected]
Tags