Important syntax Flashcards

1
Q

ng serve –open

A

compile and open angular app (terminal)

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

ng generate component comp-name

A

make new component in angular (terminal)

can use: ng g c comp-name

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

{{ variable }}

A

make a variable in comp-name.component.ts
put {{ var }} in comp-name.component.html
“ > in app.component.html
–this renders a variable on the page

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

export default class-name;

A

allows a class to be imported into other classes (typescript)

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

class ClassName{ }

A

class in java

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

datatype varName;

A

variable in java

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

returnType methodName(){ }

A

method for java

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

ClassName( ) { }

A

constructor for java

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

varName = 10;

A

variable declaration in java

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

access modifiers

A

public, private, protected

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

dataType[ ] array = new int[sizeArr];

A

declaring an array

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

dataType[ ] array = { }

A

array initializer

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