1/13
These flashcards cover key concepts related to AngularJS and TypeScript, including definitions, advantages, and commands used for development.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is AngularJS?
AngularJS is an open-source web application framework maintained by Google, used for creating dynamic web applications.
What are some advantages of using AngularJS?
Advantages include being open-source, dependency injection, two-way data binding, routing capabilities, and support for testing.
What does scope do in AngularJS?
Scope is the binding part between the HTML (view) and JavaScript (controller), providing an object with available properties and methods.
How does routing work in AngularJS?
Routing in AngularJS allows navigation from one view to another while staying on the same page, essential for single-page applications.
What is the latest version of AngularJS mentioned in the notes?
The latest version mentioned is 1.2.21.
What is TypeScript?
TypeScript is a superset of JavaScript that enables static typing and is used for building front-end applications, such as those built with Angular.
What command is used to compile a TypeScript file?
The command used is 'tsc' followed by the filename, e.g., tsc Arrays.ts.
What are the built-in data types in TypeScript?
Built-in data types include number, string, boolean, undefined, and various number formats like binary, octal, and hexadecimal.
What is MVC in web development?
MVC stands for Model-View-Controller, an architectural pattern that separates application logic into three interconnected components.
How does AngularJS implement MVC?
AngularJS implements MVC by separating the Model, View, and Controller to organize code and manage its relationship effectively.
What is the purpose of Node Package Manager (NPM)?
NPM is a package manager for Node.js, providing dependency management for Angular applications through packages defined in package.json.
What command installs Angular CLI using NPM?
The command to install Angular CLI is 'npm install -g @angular/cli'.
What is the function of a component in Angular?
A component is a building block of an Angular app, containing the UI layer and associated logic in a structured way.
How do you create a new Angular component?
You create a new Angular component using the command 'ng generate c