Angular: Visibility in Classes

By default, a property in a class has public visibility. class Trinket { name: string; constructor (name: string) { this.name = name; } } We can access the 'name' property…

Angular: Interfaces

Interfaces can be used to ensure that an object has certain properties. For example: interface Weapon { name: string; type: string } We can then say: let myWeapon: Weapon; myWeapon…