This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(undefined) // false | |
if(null) // false | |
if(NaN) // false | |
!undefined // true | |
!null // true | |
!NaN // true | |
+undefined // NaN | |
+null // 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Break in outer for loop | |
var str = 0; | |
outerloop: | |
for (var i = 0; i < 3; i++) { | |
console.log("I: " + i); | |
innerloop: | |
for(var j = 0; j < 5; j++) { | |
if(j === 2) { | |
break outerloop; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
export interface Box { | |
color: string; | |
cols: number; | |
rows: number; | |
text: string; | |
} | |
@Component({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Grid 1</h2> | |
<div | |
gdAreas="header header | content side | footer footer" | |
gdGap="16px" | |
gdRows="auto auto auto"> | |
<div gdArea="header"> | |
Header | |
</div> | |
<div gdArea="side"> | |
Side Bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Style 1</h2> | |
<div | |
fxLayout="row" | |
fxLayout.xs="column" | |
fxLayoutAlign="space-between"> | |
<div class="box box1">Box 1</div> | |
<div class="box box2">Box 2</div> | |
<div class="box box3">Box 3</div> | |
<div class="box box4">Box 4</div> | |
<div class="box box5">Box 5</div> |