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
<ng-container *ngIf=" | |
{ | |
obs1: obs1$ | async, | |
obs2: obs2$ | async, | |
obs3: obs3$ | async | |
} as observables"> | |
<!-- already expanded observable!--> | |
{{observables.obs1}} | |
</ng-container> |
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
<ng-container *ngIf="isCompetenceCatalogEditor$ | async"> | |
<ng-container *ngIf="offers$ | async as offers"> | |
<ng-container *ngIf="products$ | async as products"> | |
<!--something here--> | |
</ng-container> | |
</ng-container> | |
</ng-container> |
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
<ng-container *ngIf="products$ | async as products"> | |
<div> All products: {{products.join(',')}}</div> | |
<div> First product: {{products[0]}}</div> | |
<div> Last product: {{products[products.length] }}</div> | |
</ng-container> |
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
<ng-container *ngIf="isCompetenceCatalogEditor$ | async"> | |
<div> some content</div> | |
<div> some more content</div> | |
<div> some more more content</div> | |
</ng-container> |
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
<div *ngIf="isCompetenceCatalogEditor$ | async"> some content</div> | |
<div *ngIf="isCompetenceCatalogEditor$ | async"> some more content</div> | |
<div *ngIf="isCompetenceCatalogEditor$ | async"> some more more content</div> |
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
@Component({ | |
selector: 'app-totoro', | |
template: `<pre>{{totoroDetails$ | async | json}}</pre>`, | |
}) | |
export class TotoroComponent implements OnInit { | |
totoroDetails$: string; | |
constructor(private http: HttpClient) { | |
} | |
ngOnInit() { |
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
@Component({ | |
selector: "app-totoro", | |
template: ` | |
<pre>{{ totoroDetails | json }}</pre> | |
` | |
}) | |
export class TotoroComponent implements OnInit, OnDestroy { | |
totoroDetails: string; | |
subscription: Subscription<any>; | |
constructor(private http: HttpClient) {} |
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
/** @type {string} */ | |
var a; | |
/** @type {number} */ | |
const Pi; | |
/** @type {boolean} */ | |
let isChecked; |
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
/** | |
* @param {number} a | |
* @param {number} b | |
* @return {number} | |
*/ | |
function sum(a, b) { | |
return a+b; | |
} |
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 { faBalanceScale } from '@fortawesome/pro-solid-svg-icons'; | |
import { faBan } from '@fortawesome/pro-regular-svg-icons'; | |
export class IconsModule { | |
constructor(library: FaIconLibrary) { | |
library.addIcons( | |
faBalanceScale, | |
faBan, | |
//... and the rest of icons) | |
} |
NewerOlder