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 } from '@angular/core'; | |
import { CodeBox } from './code-box.interfaces'; | |
import { PxCodeFacade } from './px-code.facade'; | |
@Component({ | |
selector: 'px-code-box', | |
template: './code-box.component.html', | |
styles: ['./code-box.component.scss'], | |
}) | |
export class HeroListComponent { |
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 { PostsFacade } from '@razroo/razroo/data-access/posts'; | |
@Component({ | |
selector: 'razroo-blog', | |
templateUrl: './blog.component.html', | |
styleUrls: ['./blog.component.scss'] | |
}) | |
export class BlogComponent implements OnInit { | |
posts: any[]; | |
allPosts$: Observable<Post[]> = this.postFacade.allPosts$; |
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 { PostsFacade } from '@razroo/razroo/data-access/posts'; | |
@Component({ | |
selector: 'razroo-blog', | |
templateUrl: './blog.component.html', | |
styleUrls: ['./blog.component.scss'] | |
}) | |
export class BlogComponent implements OnInit { | |
posts: any[]; | |
allPosts$: Observable<Post[]> = new PostsFacade().allPosts$; |
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 { PostsFacade } from '@razroo/razroo/data-access/posts'; | |
@Component({ | |
selector: 'razroo-blog', | |
templateUrl: './blog.component.html', | |
styleUrls: ['./blog.component.scss'] | |
}) | |
export class BlogComponent implements OnInit { | |
posts: any[]; | |
allPosts$: Observable<Post[]> = new PostsFacade().allPosts$; |
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 { PostsFacade } from '@razroo/razroo/data-access/posts'; | |
@Component({ | |
selector: 'razroo-blog', | |
templateUrl: './blog.component.html', | |
styleUrls: ['./blog.component.scss'] | |
}) | |
export class BlogComponent implements OnInit { | |
posts: any[]; | |
allPosts$: Observable<Post[]> = new PostsFacade().allPosts$; |
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 { PostsFacade } from '@razroo/razroo/data-access/posts'; | |
@Component({ | |
selector: 'razroo-blog', | |
templateUrl: './blog.component.html', | |
styleUrls: ['./blog.component.scss'] | |
}) | |
export class BlogComponent implements OnInit { | |
posts: any[]; | |
allPosts$: Observable<Post[]> = new PostsFacade().allPosts$; |
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
<ul> | |
<ng-container *ngFor="let box of boxes"> | |
<ng-container *ngIf="box.item === 'food'"> | |
<li>{{ box.name }}</li> | |
</ng-container> | |
</ng-container> | |
</ul> |
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-container *ngIf="showText"> | |
<p>This is text.</p> | |
<p>This is more text.</p> | |
</ng-container> |
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
<ul> | |
<li *ngFor="let box of boxes" *ngIf="box.item === 'food'">{{ box.name | |
}}</li> | |
</ul> |
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
<div *ngIf="showText"> | |
<p>This is text.</p> | |
<p>This is more text.</p> | |
</div> |