Important syntax Flashcards
ng serve –open
compile and open angular app (terminal)
ng generate component comp-name
make new component in angular (terminal)
can use: ng g c comp-name
{{ variable }}
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
export default class-name;
allows a class to be imported into other classes (typescript)
class ClassName{ }
class in java
datatype varName;
variable in java
returnType methodName(){ }
method for java
ClassName( ) { }
constructor for java
varName = 10;
variable declaration in java
access modifiers
public, private, protected
dataType[ ] array = new int[sizeArr];
declaring an array
dataType[ ] array = { }
array initializer