Getting started Flashcards

1
Q

Convention over configuration

A

Structure straight out of the box
Provides common solutions to common problems
Larger learning curve

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Angular CLI

A

Build the project
Start a development server
Run tests
Deploy the app

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Installation

A

Install NPM and Node
Then:
>npm install -g @angular/cli

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

angular version

A

> ng version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

angular help

A

> angular help

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

command help

A

ng [command] –help

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

angular new app (CLI)

A

> ng new [project_name]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

To update a project to a newer version

A

“Update Project Guide”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Development Server

A

A http server for development purposes only that track all changes to the project files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

.editorconfig

A

Support many code editors across different team members

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

.gitignore

A

Allows to configure what is to be included in the git commit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

angular.json

A

Angular allows many projects at the same time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

architect section in angular.json

A

To compile the project

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

karma.config.js

A

testing Configuration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

package.json

A

Project dependencies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

tsconfig.app.json

A

Compiling options

17
Q

src/main.ts

A

Main Entry to our App

18
Q

compilation

A

the process of transforming code into machine code

19
Q

JIT (Just In Time)

A

The source code gets compiled in our browser:

loads slower since the file size is larger than AOT and compiles and catch errors over the browser

20
Q

AOT (Ahead On Time)

A

It compiles the code in the server

loads faster since the file size is smallest than AOT and compiles and catch errors over the server

21
Q

AOT Dependency in angular projects

A

import {platformBrowser} from ‘@angular/platform-browser’;
platformBrowser()

22
Q

JIT Dependency in angular projects

A

import {platformBrowserDynamic} from ‘@angular/platform-browser-dynamic’;
platformBrowserDynamic()

23
Q

production mode

A

to avoid double load of content (change detection)

24
Q

change detection happens when:

A

the app is initialized
after a change in the source code
manually triggering

25
Assets folder
for static files like images, etc.
26
Polyfills file
is used to adapt our app to every browser
27
decorators
functions for extending business logic or adding metadata
28
typescript
a superset of javascript