This is a short introduction to get you start and experience with Angular. For more information, please refer to Angular.io. Show (Please let me know if you find any errors or omissions in the document, 31-May-2022) OverviewWhat is Angular?
JavaScript Client-Side Frameworks
Note on JavaScript and TypeScript: TypeScript is a strongly typed programming language that builds on JavaScript — TypeScript is a superset of JavaScript that includes static typing. All JavaScript programs are valid TypeScript. TypeScript enforces type checking at compile time. Since web browsers cannot run TypeScript, TypeScript programs are compiled into JavaSript programs before the browsers can run them. Why Angular?
Note: AngularJS is the official branding (reserved for AngularJS 1.x), which is the early version of Angular. Because the new version of Angular used TypeScript (instead of JavaScript) as the primary language, the JS was dropped. Single-Page Application (SPA)
Advantages:
Disadvantages:
[For more information, please refer to web software model] Front-end Framework
Advantages:
Disadvantages:
[For more information, please refer to web software model] Angular Applications
Note: To create an Angular app, App OrganizationComponents and FeaturesTo get started with Angular, let's understand the various components and features that will be implemented and how they interact with each other. Module
Component
Data Model
Views with Templates and Directives
Expressions
Data Binding
Services
Dependency Injection
Life CycleThree phases of Angular life cycle
The three phases happen each time a web page is loaded in the browser. Similar to any app, an Angular app has a main entry point. After the app is run (using the command
file to find the entry point to the Angular app. At the high level:
Separation of ResponsibilitiesThe important part of designing Angular applications is the separation of responsibilities. This ensures that code is readable, maintainable, and testable. Guideline when implementing Angular applications
What types of clientExplanation: Web applications can use Java applets in the client-side logic to improve the presentation layer. Applets run on Java-enabled browsers like Microsoft Internet Explorer and are loaded when the HTML page is processed.
What are the clientIn web development, 'client side' refers to everything in a web application that is displayed or takes place on the client (end user device). This includes what the user sees, such as text, images, and the rest of the UI, along with any actions that an application performs within the user's browser.
What are the components of a web application?All web-based database applications have three primary components: A web browser (or client), a web application server, and a database server. Web-based database applications rely on a database server, which provides the data for the application.
Which type of web document is run at the client site?Active: An active web document consists of a computer program that the server sends to the browser and that the browser must run locally. When it runs, the active document program can interact with the user and change the display continuously. Hence the correct answer is Active.
|