This file contains hidden or 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
function _View_AppComponent_1_0():void { | |
var _any:any = (null as any); | |
const currVal_0:any = i0.ɵinlineInterpolate(1,'',_decl0_12.flag,''); | |
currVal_0; | |
} |
This file contains hidden or 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
const _ctor1: (init: Partial<Pick<i1.ChildComponent, "prop">>) => i1.ChildComponent = (null!); | |
function _tcb1(ctx: i0.AppComponent) { | |
if (true) { | |
var _t1 = _ctor1({}); | |
_t1.s; // Property 's' does not exist on type 'ChildComponent'. | |
var _t2 = document.createElement("app-child"); | |
} | |
} |
This file contains hidden or 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
function _tcb1(ctx: i0.AppComponent) { | |
if (true) { | |
var _t1 = document.createElement("input"); | |
_t1.s; // Property 's' does not exist on type 'HTMLInputElement'. | |
} | |
} |
This file contains hidden or 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
static ngTypeCtor<T>(init: Partial<Pick<NgForOf<T>, 'ngForOf'|'ngForTrackBy'|'ngForTemplate'>>): NgForOf<T>; |
This file contains hidden or 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 { Pipe, PipeTransform } from '@angular/core'; | |
import { isObservable, of } from 'rxjs'; | |
import { map, startWith, catchError } from 'rxjs/operators'; | |
@Pipe({ | |
name: 'withLoading', | |
}) | |
export class WithLoadingPipe implements PipeTransform { | |
transform(val) { | |
return isObservable(val) |
This file contains hidden or 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 { Pipe, PipeTransform } from '@angular/core'; | |
import { isObservable, of } from 'rxjs'; | |
import { map, startWith, catchError } from 'rxjs/operators'; | |
@Pipe({ | |
name: 'withLoading', | |
}) | |
export class WithLoadingPipe implements PipeTransform { | |
transform(val) { | |
return isObservable(val) |
This file contains hidden or 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 class="title">Products</h2> | |
<div class="search-bar"> | |
<input (input)="searchStream$.next($event.target.value)"> | |
</div> | |
<div class="results"> | |
<h3>Built-in solution</h3> | |
<div *ngIf="obs$ | async as obs"> | |
<ng-template [ngIf]="obs.type === 'finish'"> |
This file contains hidden or 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
<h3 context-help="Some description 1">Some title 1</h3> |
This file contains hidden or 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-content></ng-content> | |
<div class="context-help-container" #container> | |
<i (click)="showHelp = true;"></i> | |
<div *ngIf="showHelp" class="context-help-dialog"> | |
{{ content }} | |
</div> | |
</div> |
This file contains hidden or 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, OnInit, Input, ElementRef, HostListener, ViewChild } from '@angular/core'; | |
@Component({ | |
selector: '[context-help]', | |
templateUrl: './context-help.component.html', | |
styleUrls: ['./context-help.component.css'], | |
}) | |
export class ContextHelpComponent { | |
@Input('context-help') content: string; |