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…
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…
Static Property: <?php class Automobile { public static $colorRed = "red"; } echo Automobile::$colorRed; A Class can use the keyword self to reference itself within a static method. <?php class…
You can create a Constant variable within a Class: class Automobile { const AVG_COST = 5000; } AVG_COST will be static (you don't need to instantiate an Automobile object to…
Learn how to install Bootstrap (and ng-bootstrap) into your Angular web application. Prerequisites Create a web application with Angular CLI The Short Version 1. Run this command from your shell:…
When you create a project with Angular CLI, it creates a demo web application for you. Learn how to replace this demo with your own code. Prerequisites Angular: Create a…
Learn how to run your Angular application on your localhost for development. Prerequisites Create a web application with Angular CLI The Short Version From your command shell, execute the following…
Learn how to create an Angular Component using the Angular CLI. Prerequisites Install Angular CLI The Short Version 1. Run this command from your shell: ng g c components/Header This…
Learn how to create an Angular project that follows best practices using Angular CLI. Prerequisites: Install Angular CLI Install Git The Short Version 1. Run the following command from your…
Learn how to install Git on your computer. The Short Version Go to https://git-scm.com/book/en/v2/Getting-Started-Installing-GitFollow the instructions to install Git on your operating system