Slides: http://bit.ly/jax-spa
Zitate
Wo muss ich nach Fehlern suchen? Wo ist die Logik?
In welchem Zustand ist meine Anwendung?
Geht entweder nicht oder "Gott-Komponente" entsteht
Wie kommt Zustand von ganz oben nach ganz unten?
Wiederverwendung? Framework-unabhängigkeit? Testbarkeit?
Wie, wo und wann wird die Anwendung initialisiert?
// variables can have type information
let foo: string;
foo = 'yo';
// Error: Type 'number' is not assignable to type 'string'.
foo = 10;
// types can be inferred (return type)
function sayIt(what: string) {
return `Saying: ${what}`;
}
const said: string = sayIt(obj);
class Sayer {
what: string; // mandatory
constructor(what: string) {
this.what = what;
}
// return type if you want to
sayIt(): string {
return `Saying: ${this.what}`;
}
}