SlideShare une entreprise Scribd logo
1  sur  13
Télécharger pour lire hors ligne
ACKNOWLEDGEMENT
I would like to express my special thanks of gratitude to lovely Professional University, who
gave me the golden opportunity to do this wonder project of Angular 6. I came to know
about so many new things I am really thankful for this. Secondly, I would like to thanks my
parents and my friend who help me a lot to finalizing this project within the limited time
frame.
Deepanshu
Reg No. 11715635
Content
 INTRODUCTION OF ANGULAR 6
 ANGULAR 6 ARCHITURE
 ANGULAR 6 FORMS
 DATA BINDING
 PIPES
 SERVICES
 ROUTING
 MODULE
Introduction to Angular 6
Angular is an open-source JavaScript framework developed by Google. It helps you to
create single-page applications, one-page web applications that only require HTML, CSS,
and JavaScript on the client side. It is based on MVC. pattern and build well structured,
easily testable, and maintainable front-end applications.
Angular has changed the way to web development. It does not base on jQuery to perform
its operations. Till now you are using ASP.NET, ASP.NET MVC, PHP, 6P, Ruby on Rails for
web development but now you can do your complete web development by using most
powerful and adaptive JavaScript Framework Angular. There is no doubt, JavaScript
frameworks like Angular Ember etc. are the future of web development
Angular 6 Architecture
Angular 6 Follows the MVC architecture, the diagram of the MVC framework as shown
below.
Controller
View
Module
 The Controller represents the: layer that has the business logic. User events trigger
the functions which be stored inside your controller. The user events are part of the
controller.
 Views are used to represent the presentation layer which is provided to the end
user
 Models are used to represent your data. The data in your model can be as simple as
just having primitive declarations for example, if you are maintaining a student
application your data model could just have a student id and a name or can also be
complex by having a structured data model. If you are maintaining a car ownership
application, you can have structures to define the vehicle itself in terms of its engine
capacity, seating capacity, etc.
Angular 6 Forms
Angular 6 facilitates you to create a form enriches with data binding and validation of
input controls
Input controls are ways for a user to enter data. A form is a collection of controls for the
purpose of grouping related controls together. Following are the input controls used in
Angular6 forms:
 input element
 selects element
 button element
 text area elements
Angular provides multiple events that can be associated with the HTML controls. These
events are associated with the different HTML Input elements.
Following is a list of events supported in Angular:
 ng-click
 ng-dblclick
 ng-mousedown
 ng-mouseup
 ng-mouseenter
 ng-mouseleave
 ng-mousemove
 ng-mouseover
 ng-keydown
 ng-keyup
 ng-keypress
 ng-change
Angular 6 Data Binding
Data binding is a very useful and powerful feature used in software development
technologies. It acts as a bridge between the view and business logic of the application.
There is two type of data binding:
1. One-way data binding
The one-way data binding is an approach where n value is taken from the data model and
inserted into an HTML element. There is no way to update model from view. It is used in
classical template systems. These systems bind data in only one direction.
View
One Time Merge
Template Model
2. Two-way data binding
Data-binding in Angular apps is the automatic synchronization of data between the model
and view components.
Data binding lets you treat the model as the single-source-of-truth in your application the
view is a projection of the model at all times. If the model is changed, the view reflects the
change and vice versa.
Template
View
Model
Pipes
Every application starts out with what seems like a simple task gal data, transform them
and show them to users. Getting data could be as simple as creating a local variable or as
complex as streaming data over a WebSocket
Once data arrives, you could push their raw to String values directly to the view, but that
rarely makes for a good user experience. For example, in most use cases, users prefer to
see a date in a simple format like April 15. 1988 rather than the raw string format Fri Apr
15 1988 00:00:00 GMT-0700 (Pacific Daylight Time).
Clearly, some values benefit from a bit of editing. You may notice that you desire many of
the same transformations repeatedly, both within and across many applications. You can
almost think of them as styles. In fact, you might like to apply them in your HTML templates
as you do styles
Introducing Angular pipes, a way to write display-value transformations that you can
declare in your HTML
Services
Angular 6 services are substitutable objects that are wired together using dependency
injection (DI). You can use services to organize and share code across your app
Angular 6 service types: -
Angular comes with different types of services. Each one with its own use cases
All of these services are singletons. You probably want to use Factory all the time.
Provider
 Is the parent of all other services (except constant)
 can be configured using app.config(function (Provider)
 a little complex
Factory
 simpler than Provider, but without configuration
 definition: 'app.factory(name', some Function)
 some Function is called when the name service is instantiated and should return
an object
Service
 just like Factory, but:
 instead of a function. it receives a JavaScript class a constructor function as
argument
 simplest service type, but also least flexible
Value
 just stores a single value
 use it like app.value('name' value")
Constant
 just like value, but
 can be injected everywhere
 is not constant Oo, but may be changed
Routing
In Angular routing is what you to create Single Page Applications
 Angular 6 routes enable you to create different URL for different content in your
application
 Angular routes allow one to show multiple contents depending on which route is
chosen.
 A route is specified in the URL after the # sign.
Let's take an example of a site which is hosted via the URL
http://example.com/inder.html.
On this page you would host the main page of your application Suppose if the application
was organizing an Event and one wanted to see what the various events on display are,
or wanted to see the details of a particular event or delete an event. In a Single Page
application, when routing is enabled, all of this functionality would be available via the
following links
http://example.com/index.html#ShowEvent
http://example.com/index.html#Display Event
http://example.com/index.html#DeleteEvent
The # symbol would be used along with the different routes (Show Event Display Event,
and Delete Event).
 So, if the user wanted to see all Events, they would Be directed to the link
(http://example.com/index.html#Show Event) else
 If they wanted to just see a particular event they would be redirected to the link
(http://example.com/index.html#Display Event) or
 If they wanted to delete an event, they would be directed to the link
http://example.com/index.html#DeleteEvent
Note that the main URL stays the same.
Angular 6 Module
In Angular, a module defines an application. It is a container for the different parts of
your application like controller, services, liters, directives etc.
A module is used as a Main method. Controller always belongs to a module.
How to Create a Module?
The angular object module method is used to create a module. It is also called Angular 6
function angular. Module
<div ng-app="myApp">…</div>
<script>
var app = angular.module("myApp" []);
</script>
Here, "myApp" specifies an HTML clement in which the application will run
Now we can add controllers’ directives, filters, and more to Angular application
How to add controller to a module: -
If you want to add a controller to your application refer to the controller with the ng-
controller directive
See this example:
<!DOCTYPE html>
<html>
<script src="http://ajax.googleapis.com/ajax/libs/angular6/1.4.angular.min.6"></script>
<body>
<div ng-app="myApp" ng-controller="myCtrl> firstName +"" + lastName )) </div>
<script>
var app angular.module("myApp. 1);
app.controller("myCtrl function(Sscope)
{$scope firstName "Ajeet";
$scope.lastName="Mourya":}
</script>
</body>
</html>
Declaration
I hereby declare that I have completed my six weeks summer training at Internshala from
01/06/2019 to 13/07/2019 under the guidance of Internshala. I hereby undertake that
project undertaken by me is the genuine work of mine.
DATE: 22 Feb 2020 (Signature of student)
Deepanshu
Reg no.11715635
SIX WEEKS SUMMER TRANING REPORT
(15/05/2019 to 26/06/2019)
ON
(Angular 6)
Submitted by:
Deepanshu
Reg No. 11715635
Program Name BCA
School of Computer Application
Lovely Professional University, Phagwara Punjab
(2020)
 Angular Project Report

Contenu connexe

Tendances

Web Development on Web Project Presentation
Web Development on Web Project PresentationWeb Development on Web Project Presentation
Web Development on Web Project PresentationMilind Gokhale
 
Introduction to React JS
Introduction to React JSIntroduction to React JS
Introduction to React JSArno Lordkronos
 
FRONT-END WEB DEVELOPMENT WITH REACTJS
FRONT-END WEB DEVELOPMENT WITH REACTJSFRONT-END WEB DEVELOPMENT WITH REACTJS
FRONT-END WEB DEVELOPMENT WITH REACTJSTran Phong Phu
 
Command Design Pattern
Command Design PatternCommand Design Pattern
Command Design PatternRothana Choun
 
Angular components
Angular componentsAngular components
Angular componentsSultan Ahmed
 
Angular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP ServicesAngular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP ServicesWebStackAcademy
 
React JS - A quick introduction tutorial
React JS - A quick introduction tutorialReact JS - A quick introduction tutorial
React JS - A quick introduction tutorialMohammed Fazuluddin
 
Introduction to fragments in android
Introduction to fragments in androidIntroduction to fragments in android
Introduction to fragments in androidPrawesh Shrestha
 
MCA 6th Sem Project Report
MCA 6th Sem Project ReportMCA 6th Sem Project Report
MCA 6th Sem Project ReportPRADEEP GUPTA
 
Angular 4 and TypeScript
Angular 4 and TypeScriptAngular 4 and TypeScript
Angular 4 and TypeScriptAhmed El-Kady
 
Introduction to Django REST Framework, an easy way to build REST framework in...
Introduction to Django REST Framework, an easy way to build REST framework in...Introduction to Django REST Framework, an easy way to build REST framework in...
Introduction to Django REST Framework, an easy way to build REST framework in...Zhe Li
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation洪 鹏发
 

Tendances (20)

Angular overview
Angular overviewAngular overview
Angular overview
 
Web Development on Web Project Presentation
Web Development on Web Project PresentationWeb Development on Web Project Presentation
Web Development on Web Project Presentation
 
Introduction to React JS
Introduction to React JSIntroduction to React JS
Introduction to React JS
 
FRONT-END WEB DEVELOPMENT WITH REACTJS
FRONT-END WEB DEVELOPMENT WITH REACTJSFRONT-END WEB DEVELOPMENT WITH REACTJS
FRONT-END WEB DEVELOPMENT WITH REACTJS
 
Command Design Pattern
Command Design PatternCommand Design Pattern
Command Design Pattern
 
Angular 14.pptx
Angular 14.pptxAngular 14.pptx
Angular 14.pptx
 
Model View Controller (MVC)
Model View Controller (MVC)Model View Controller (MVC)
Model View Controller (MVC)
 
Angular components
Angular componentsAngular components
Angular components
 
WEB DEVELOPMENT USING REACT JS
 WEB DEVELOPMENT USING REACT JS WEB DEVELOPMENT USING REACT JS
WEB DEVELOPMENT USING REACT JS
 
Online news 365
Online news 365Online news 365
Online news 365
 
Angular IO
Angular IOAngular IO
Angular IO
 
Angular modules in depth
Angular modules in depthAngular modules in depth
Angular modules in depth
 
Angular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP ServicesAngular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP Services
 
React JS - A quick introduction tutorial
React JS - A quick introduction tutorialReact JS - A quick introduction tutorial
React JS - A quick introduction tutorial
 
Introduction to fragments in android
Introduction to fragments in androidIntroduction to fragments in android
Introduction to fragments in android
 
MCA 6th Sem Project Report
MCA 6th Sem Project ReportMCA 6th Sem Project Report
MCA 6th Sem Project Report
 
Angular 4 and TypeScript
Angular 4 and TypeScriptAngular 4 and TypeScript
Angular 4 and TypeScript
 
Introduction to Django REST Framework, an easy way to build REST framework in...
Introduction to Django REST Framework, an easy way to build REST framework in...Introduction to Django REST Framework, an easy way to build REST framework in...
Introduction to Django REST Framework, an easy way to build REST framework in...
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
 
AngularJS
AngularJS AngularJS
AngularJS
 

Similaire à Angular Project Report

AngularJS Fundamentals + WebAPI
AngularJS Fundamentals + WebAPIAngularJS Fundamentals + WebAPI
AngularJS Fundamentals + WebAPIEric Wise
 
Angular js getting started
Angular js getting startedAngular js getting started
Angular js getting startedHemant Mali
 
Intoduction to Angularjs
Intoduction to AngularjsIntoduction to Angularjs
Intoduction to AngularjsGaurav Agrawal
 
Angular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad indiaAngular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad indiaphp2ranjan
 
One Weekend With AngularJS
One Weekend With AngularJSOne Weekend With AngularJS
One Weekend With AngularJSYashobanta Bai
 
Single Page Applications in SharePoint with Angular
Single Page Applications in SharePoint with AngularSingle Page Applications in SharePoint with Angular
Single Page Applications in SharePoint with AngularSparkhound Inc.
 
ANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 schANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 schkannikadg
 
introduction to Angularjs basics
introduction to Angularjs basicsintroduction to Angularjs basics
introduction to Angularjs basicsRavindra K
 
AngularJS Basics
AngularJS BasicsAngularJS Basics
AngularJS BasicsRavi Mone
 
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseAngular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseEPAM Systems
 
Angular Interview Questions-PDF.pdf
Angular Interview Questions-PDF.pdfAngular Interview Questions-PDF.pdf
Angular Interview Questions-PDF.pdfJohnLeo57
 
Top 7 Angular Best Practices to Organize Your Angular App
Top 7 Angular Best Practices to Organize Your Angular AppTop 7 Angular Best Practices to Organize Your Angular App
Top 7 Angular Best Practices to Organize Your Angular AppKaty Slemon
 
Angular js 1.3 presentation for fed nov 2014
Angular js 1.3 presentation for fed   nov 2014Angular js 1.3 presentation for fed   nov 2014
Angular js 1.3 presentation for fed nov 2014Sarah Hudson
 
Angular kickstart slideshare
Angular kickstart   slideshareAngular kickstart   slideshare
Angular kickstart slideshareSaleemMalik52
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxsarah david
 
The Basics Angular JS
The Basics Angular JS The Basics Angular JS
The Basics Angular JS OrisysIndia
 
Angular interview questions
Angular interview questionsAngular interview questions
Angular interview questionsGoa App
 

Similaire à Angular Project Report (20)

AngularJS Fundamentals + WebAPI
AngularJS Fundamentals + WebAPIAngularJS Fundamentals + WebAPI
AngularJS Fundamentals + WebAPI
 
Angular js getting started
Angular js getting startedAngular js getting started
Angular js getting started
 
Intoduction to Angularjs
Intoduction to AngularjsIntoduction to Angularjs
Intoduction to Angularjs
 
AngularJS
AngularJSAngularJS
AngularJS
 
Angular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad indiaAngular 6 Training with project in hyderabad india
Angular 6 Training with project in hyderabad india
 
One Weekend With AngularJS
One Weekend With AngularJSOne Weekend With AngularJS
One Weekend With AngularJS
 
Single Page Applications in SharePoint with Angular
Single Page Applications in SharePoint with AngularSingle Page Applications in SharePoint with Angular
Single Page Applications in SharePoint with Angular
 
Training On Angular Js
Training On Angular JsTraining On Angular Js
Training On Angular Js
 
ANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 schANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 sch
 
introduction to Angularjs basics
introduction to Angularjs basicsintroduction to Angularjs basics
introduction to Angularjs basics
 
AngularJS in practice
AngularJS in practiceAngularJS in practice
AngularJS in practice
 
AngularJS Basics
AngularJS BasicsAngularJS Basics
AngularJS Basics
 
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseAngular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
 
Angular Interview Questions-PDF.pdf
Angular Interview Questions-PDF.pdfAngular Interview Questions-PDF.pdf
Angular Interview Questions-PDF.pdf
 
Top 7 Angular Best Practices to Organize Your Angular App
Top 7 Angular Best Practices to Organize Your Angular AppTop 7 Angular Best Practices to Organize Your Angular App
Top 7 Angular Best Practices to Organize Your Angular App
 
Angular js 1.3 presentation for fed nov 2014
Angular js 1.3 presentation for fed   nov 2014Angular js 1.3 presentation for fed   nov 2014
Angular js 1.3 presentation for fed nov 2014
 
Angular kickstart slideshare
Angular kickstart   slideshareAngular kickstart   slideshare
Angular kickstart slideshare
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptxangularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
 
The Basics Angular JS
The Basics Angular JS The Basics Angular JS
The Basics Angular JS
 
Angular interview questions
Angular interview questionsAngular interview questions
Angular interview questions
 

Dernier

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 

Dernier (20)

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 

Angular Project Report

  • 1. ACKNOWLEDGEMENT I would like to express my special thanks of gratitude to lovely Professional University, who gave me the golden opportunity to do this wonder project of Angular 6. I came to know about so many new things I am really thankful for this. Secondly, I would like to thanks my parents and my friend who help me a lot to finalizing this project within the limited time frame. Deepanshu Reg No. 11715635
  • 2. Content  INTRODUCTION OF ANGULAR 6  ANGULAR 6 ARCHITURE  ANGULAR 6 FORMS  DATA BINDING  PIPES  SERVICES  ROUTING  MODULE
  • 3. Introduction to Angular 6 Angular is an open-source JavaScript framework developed by Google. It helps you to create single-page applications, one-page web applications that only require HTML, CSS, and JavaScript on the client side. It is based on MVC. pattern and build well structured, easily testable, and maintainable front-end applications. Angular has changed the way to web development. It does not base on jQuery to perform its operations. Till now you are using ASP.NET, ASP.NET MVC, PHP, 6P, Ruby on Rails for web development but now you can do your complete web development by using most powerful and adaptive JavaScript Framework Angular. There is no doubt, JavaScript frameworks like Angular Ember etc. are the future of web development
  • 4. Angular 6 Architecture Angular 6 Follows the MVC architecture, the diagram of the MVC framework as shown below. Controller View Module  The Controller represents the: layer that has the business logic. User events trigger the functions which be stored inside your controller. The user events are part of the controller.  Views are used to represent the presentation layer which is provided to the end user  Models are used to represent your data. The data in your model can be as simple as just having primitive declarations for example, if you are maintaining a student application your data model could just have a student id and a name or can also be complex by having a structured data model. If you are maintaining a car ownership application, you can have structures to define the vehicle itself in terms of its engine capacity, seating capacity, etc.
  • 5. Angular 6 Forms Angular 6 facilitates you to create a form enriches with data binding and validation of input controls Input controls are ways for a user to enter data. A form is a collection of controls for the purpose of grouping related controls together. Following are the input controls used in Angular6 forms:  input element  selects element  button element  text area elements Angular provides multiple events that can be associated with the HTML controls. These events are associated with the different HTML Input elements. Following is a list of events supported in Angular:  ng-click  ng-dblclick  ng-mousedown  ng-mouseup  ng-mouseenter  ng-mouseleave  ng-mousemove  ng-mouseover  ng-keydown  ng-keyup  ng-keypress  ng-change
  • 6. Angular 6 Data Binding Data binding is a very useful and powerful feature used in software development technologies. It acts as a bridge between the view and business logic of the application. There is two type of data binding: 1. One-way data binding The one-way data binding is an approach where n value is taken from the data model and inserted into an HTML element. There is no way to update model from view. It is used in classical template systems. These systems bind data in only one direction. View One Time Merge Template Model 2. Two-way data binding Data-binding in Angular apps is the automatic synchronization of data between the model and view components. Data binding lets you treat the model as the single-source-of-truth in your application the view is a projection of the model at all times. If the model is changed, the view reflects the change and vice versa. Template View Model
  • 7. Pipes Every application starts out with what seems like a simple task gal data, transform them and show them to users. Getting data could be as simple as creating a local variable or as complex as streaming data over a WebSocket Once data arrives, you could push their raw to String values directly to the view, but that rarely makes for a good user experience. For example, in most use cases, users prefer to see a date in a simple format like April 15. 1988 rather than the raw string format Fri Apr 15 1988 00:00:00 GMT-0700 (Pacific Daylight Time). Clearly, some values benefit from a bit of editing. You may notice that you desire many of the same transformations repeatedly, both within and across many applications. You can almost think of them as styles. In fact, you might like to apply them in your HTML templates as you do styles Introducing Angular pipes, a way to write display-value transformations that you can declare in your HTML
  • 8. Services Angular 6 services are substitutable objects that are wired together using dependency injection (DI). You can use services to organize and share code across your app Angular 6 service types: - Angular comes with different types of services. Each one with its own use cases All of these services are singletons. You probably want to use Factory all the time. Provider  Is the parent of all other services (except constant)  can be configured using app.config(function (Provider)  a little complex Factory  simpler than Provider, but without configuration  definition: 'app.factory(name', some Function)  some Function is called when the name service is instantiated and should return an object Service  just like Factory, but:  instead of a function. it receives a JavaScript class a constructor function as argument  simplest service type, but also least flexible Value  just stores a single value  use it like app.value('name' value") Constant  just like value, but  can be injected everywhere  is not constant Oo, but may be changed
  • 9. Routing In Angular routing is what you to create Single Page Applications  Angular 6 routes enable you to create different URL for different content in your application  Angular routes allow one to show multiple contents depending on which route is chosen.  A route is specified in the URL after the # sign. Let's take an example of a site which is hosted via the URL http://example.com/inder.html. On this page you would host the main page of your application Suppose if the application was organizing an Event and one wanted to see what the various events on display are, or wanted to see the details of a particular event or delete an event. In a Single Page application, when routing is enabled, all of this functionality would be available via the following links http://example.com/index.html#ShowEvent http://example.com/index.html#Display Event http://example.com/index.html#DeleteEvent The # symbol would be used along with the different routes (Show Event Display Event, and Delete Event).  So, if the user wanted to see all Events, they would Be directed to the link (http://example.com/index.html#Show Event) else  If they wanted to just see a particular event they would be redirected to the link (http://example.com/index.html#Display Event) or  If they wanted to delete an event, they would be directed to the link http://example.com/index.html#DeleteEvent Note that the main URL stays the same.
  • 10. Angular 6 Module In Angular, a module defines an application. It is a container for the different parts of your application like controller, services, liters, directives etc. A module is used as a Main method. Controller always belongs to a module. How to Create a Module? The angular object module method is used to create a module. It is also called Angular 6 function angular. Module <div ng-app="myApp">…</div> <script> var app = angular.module("myApp" []); </script> Here, "myApp" specifies an HTML clement in which the application will run Now we can add controllers’ directives, filters, and more to Angular application How to add controller to a module: - If you want to add a controller to your application refer to the controller with the ng- controller directive See this example: <!DOCTYPE html> <html> <script src="http://ajax.googleapis.com/ajax/libs/angular6/1.4.angular.min.6"></script> <body> <div ng-app="myApp" ng-controller="myCtrl> firstName +"" + lastName )) </div> <script> var app angular.module("myApp. 1); app.controller("myCtrl function(Sscope) {$scope firstName "Ajeet"; $scope.lastName="Mourya":} </script> </body> </html>
  • 11. Declaration I hereby declare that I have completed my six weeks summer training at Internshala from 01/06/2019 to 13/07/2019 under the guidance of Internshala. I hereby undertake that project undertaken by me is the genuine work of mine. DATE: 22 Feb 2020 (Signature of student) Deepanshu Reg no.11715635
  • 12. SIX WEEKS SUMMER TRANING REPORT (15/05/2019 to 26/06/2019) ON (Angular 6) Submitted by: Deepanshu Reg No. 11715635 Program Name BCA School of Computer Application Lovely Professional University, Phagwara Punjab (2020)