1. Trang chủ
  2. » Mẫu Slide

Angular JS (session 1)

21 7 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Angular JS (session 1)
Tác giả Misko Hevery, Adam Abrons
Trường học Aptech Limited
Chuyên ngành Web Development / JavaScript Frameworks
Thể loại session notes
Năm xuất bản 2010
Định dạng
Số trang 21
Dung lượng 1,73 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Bộ tài liệu học AngularJs cơ bản,tạo kiến thức nền,phù hợp với những người mới bắt đầu.Gồm các khối lệnh thường dùng,thuận tiện.Angular là một khung ứng dụng web nguồn mở, miễn phí và dựa trên TypeScript do Nhóm Angular tại Google và một cộng đồng gồm các cá nhân và tập đoàn đứng đầu. Angular được viết lại hoàn toàn từ cùng một nhóm đã xây dựng AngularJS.

Trang 1

Session 1

Understanding AngularJS and its Uses

Trang 2

Session Overview

In this session, you will be able to:

 Describe what AngularJS is

 Explain why we choose AngularJS

 Analyze MVC architecture concepts

 Describe where AngularJS is used

Trang 5

AngularJS – An Introduction

What is AngularJS?

 It enables the developer, to encapsulate a portion of a page as one application

 The objective of AngularJS is to provide a framework that makes it easy to implement well-designed and well-structured Web pages and

applications

 AngularJS makes Web application and the code very simple to write, test, and maintain

Trang 6

Why do we Choose AngularJS?

Some of the reasons:

 It makes us implement MVC and makes it easy to correctly implement MVC

 The model components of AngularJS are basic JavaScript objects

 It allows us to have our custom defined tags in HTML

 It provides simple and flexible filters that help us to easily format data

Trang 7

Why do we Choose AngularJS?

Some of the reasons:

 AngularJS applications use less code than traditional JavaScript applications

 AngularJS applications need less Document Object Model (DOM) manipulation

 It supplies several built-in services and helps us to implement our own services

 It is easy to test applications and develop them using a test-driven approach

Trang 8

MVC Concepts

MVC Architecture Pattern

 AngularJS supports MVC architecture in software development

 The Model holds the data and logic, the View holds the visual layout and presentation, while the Controller coordinates the Model and View

MVC Software Architecture Pattern

Model

is responsible for maintaining data

View

is responsible for displaying data to the

Trang 10

MVC Concepts

MVC Architecture Benefits in AngularJS

 MVC-style architecture offers us a huge reduction in the effort required for the overall app development cycle

 MVC helps in the testing phase also It leads to applications that are much easier to test unit wise and the total application as a whole

 MVC is a tried and tested way to build robust applications

MVC Software Architecture Pattern

Trang 11

Angular App Lifecycle

Code for a Simple AngularJS Application

Code for the AngularJS Application

Trang 12

Angular App Lifecycle

Working of a Simple AngularJS Application

Initial View of the AngularJS Application

View of the Angular Application after new

Inputs and Calculation

Trang 13

Where is AngularJS Used?

AngularJS Popular Website Verticals

Trang 14

Where is AngularJS Used?

Some popular Websites and apps built with AngularJS

Trang 15

Where is AngularJS Used?

Some popular Websites and apps built with AngularJS

Trang 16

Where is AngularJS Used?

Some popular Websites and apps built with AngularJS

Trang 17

Where is AngularJS Used?

Some popular Websites and apps built with AngularJS

Trang 18

Where is AngularJS Used?

Some popular Websites and apps built with AngularJS

Trang 19

Where is AngularJS Used?

Some popular Websites and apps built with AngularJS

Trang 20

well- Model has the application data.

 View is what is visible to the users of our application

 Controller acts as the link between the model and view

Trang 21

The view is defined in HTML, while the model and controllers are implemented in JavaScript.

 Important components of an AngularJS application are directives, expressions and filters

 AngularJS has attained widespread acceptance and many popular Websites and Web applications are based on it

Ngày đăng: 30/12/2022, 19:28

w