0% found this document useful (0 votes)
243 views

WTL Assignment No.9

This document outlines an assignment to design and develop a web application using AngularJS. The objectives are to understand single page applications and how AngularJS facilitates development using MVC patterns. Students are asked to implement features like data binding, scopes, controllers, services, filters and directives to build forms and make AJAX requests. An example registration and login application is provided. The document also provides an overview of AngularJS core concepts, advantages, and the MVC structure it follows.

Uploaded by

Sujit Khandare
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
243 views

WTL Assignment No.9

This document outlines an assignment to design and develop a web application using AngularJS. The objectives are to understand single page applications and how AngularJS facilitates development using MVC patterns. Students are asked to implement features like data binding, scopes, controllers, services, filters and directives to build forms and make AJAX requests. An example registration and login application is provided. The document also provides an overview of AngularJS core concepts, advantages, and the MVC structure it follows.

Uploaded by

Sujit Khandare
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Department of Computer Engineering Subject: Web Technology Laboratory

Expected Date of Completion…………………………………

Actual Date of Completion……………………….

Assignment No: 9
Title: Design and Develop any web application using Angular JS.
Objective:

1. Understand the design of single page application and how angular JS facilitates their
development.
2. Properly separate the model view and controller layers of your application and implement
them using Angular JS.
3. Master Angular JS expressions, filter and Scopes.
4. Build angular forms.
5. Elegantly implement Ajax in your angular JS application.
6. Write Angular JS Directives.
Problem Statement
Design an application using Angular JS.
e.g., Design registration (first name, last name, username, password) and login page using
Angular JS.

Outcomes

1. Implement the effective client side and server-side implementation.


2. Solve the complex problem of development using MVC framework.

Software and Hardware requirement


Software’s: Eclipse IDE/Notepad/Notepad++, Modern web browser.

Theory

Angular JS is open-source web application framework it as initially created in 2009 by


MiscoHevery and Adom Abrons. It is Presently kept up by Google. Its most recent adaptation is
AngularJS is an auxiliary system for dynamic applications. It gives you a chance to utilize
HTML as your layout dialect and gives you a chance to stretch out HTML’s linguistic structure
to express your application parts plainly and compactly. Its information official and reliance
infusion takes out a significant part of code you as of now need to compose. Also everything’s
occurs inside the program, making it a perfect band together with any server innovation.
General Features:
The general features of AngularJS are as follows −
1. AngularJS is a efficient framework that can create Rich Internet Applications (RIA).
2. AngularJS provides developers an options to write client side applications using
JavaScript in a clean Model View Controller (MVC) way.
3. Applications written in AngularJS are cross-browser compliant. AngularJS automatically
handles JavaScript code suitable for each browser.
4. AngularJS is open source, completely free, and used by thousands of developers around
the world. It is licensed under the Apache license version 2.0.

Core Features:

The core features of AngularJS are as follows −


• Data-binding − It is the automatic synchronization of data between model and view
components.
• Scope − These are objects that refer to the model. They act as a glue between controller
and view.
• Controller − These are JavaScript functions bound to a particular scope.
• Services − AngularJS comes with several built-in services such as $http to make a
XMLHttpRequests. These are singleton objects which are instantiated only once in app.
• Filters − These select a subset of items from an array and returns a new array.
• Directives − Directives are markers on DOM elements such as elements, attributes, css,
and more. These can be used to create custom HTML tags that serve as new, custom
widgets. AngularJS has built-in directives such as ngBind, ngModel, etc.
• Templates − These are the rendered view with information from the controller and
model. These can be a single file (such as index.html) or multiple views in one page
using partials.
• Routing − It is concept of switching views.
• Model View Whatever − MVW is a design pattern for dividing an application into
different parts called Model, View, and Controller, each with distinct responsibilities.
AngularJS does not implement MVC in the traditional sense, but rather something closer
to MVVM (Model-View-ViewModel). The Angular JS team refers it humorously as
Model View Whatever.
• Deep Linking − Deep linking allows to encode the state of application in the URL so
that it can be bookmarked. The application can then be restored from the URL to the
same state.
• Dependency Injection − AngularJS has a built-in dependency injection subsystem that
helps the developer to create, understand, and test the applications easily.

Advantages of AngularJS

• It provides the capability to create Single Page Application in a very clean and
maintainable way.
• It provides data binding capability to HTML. Thus, it gives user a rich and responsive
experience.
• AngularJS code is unit testable.
• AngularJS uses dependency injection and make use of separation of concerns.
• AngularJS provides reusable components.
• With AngularJS, the developers can achieve more functionality with short code.
• In AngularJS, views are pure html pages, and controllers written in JavaScript do the
business processing.

Model View Controller:


The Model-View-Controller (MVC) is an architectural pattern that separates an application into
three main logical components: the model, the view, and the controller. Each of these
components are built to handle specific development aspects of an application. MVC is one of
the most frequently used industry-standard web development framework to create scalable and
extensible projects.

AngularJS is MVC based Structure:


The AngularJS comprises of following three major parts −
• ng-app − This directive defines and links an AngularJS application to HTML.
• ng-model − This directive binds the values of AngularJS application data to HTML input
controls.
• ng-bind − This directive binds the AngularJS application data to HTML tags.
Tools and Techniques
1. Any IDE
2. Any Web Browser

Design and Execution Steps


Steps for Angular JS:
1. When a link https:/angularjs.org is opened, there are two options to download Angular JS
Library- a) view on GitHub
b) Download Angular JS1
Angular JS screen gives various options of using Angular JS as Follows:
a. Downloading and hosting files Locally
b. CDN Access
Example:
Let us write a simple example using Angular JS Library. Let us create an HTML file
myfirstexample.html as below-
Save the above code as myfirstexample.html and open it in any Browser.
Test Cases
Deploy the HTML program run test the result for dynamic implementation of Angular JS.

Conclusion
With the help of this assignment, it is helpful to understand features of Angular JS, MVC Model
structure and its use in advanced web programming is studied.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy