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
{ | |
"controls": [ | |
{ | |
"name": "address1", | |
"label": "Address line 1:", | |
"value": "", | |
"type": "text" | |
}, | |
{ | |
"name": "address2", |
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 *ngFor="let control of jsonFormData?.controls"> | |
<label class="block mt-6" for="{{ control.name }}">{{ | |
control.label | |
}}</label> | |
<input | |
*ngIf=" | |
[ | |
'text', | |
'password', | |
'email', |
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
{ | |
"controls": [ | |
{ | |
"name": "firstName", | |
"label": "First name:", | |
"value": "", | |
"type": "text" | |
}, | |
{ | |
"name": "lastName", |
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 { Injectable } from '@angular/core'; | |
import { CardItem } from 'src/app/shared/card-helpers/card-item.model'; | |
import { PostCardComponent } from 'src/app/shared/card-templates/post-card/post-card.component'; | |
import { ProductCardComponent } from 'src/app/shared/card-templates/product-card/product-card.component'; | |
import { QuoteCardComponent } from 'src/app/shared/card-templates/quote-card/quote-card.component'; | |
@Injectable() | |
export class HomeService { | |
public getItems(): CardItem[] { | |
return [ |
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
# Specifies intentionally untracked files to ignore when using Git | |
# http://git-scm.com/docs/gitignore | |
*~ | |
*.sw[mnpcod] | |
*.log | |
*.tmp | |
*.tmp.* | |
log.txt | |
*.sublime-project |
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
<a href="{{tweetUrl}}" target="_blank"> | |
<span class="cta">{{cta}}</span> | |
<i class="fab fa-twitter twitter-icon"></i> | |
</a> |
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 { Directive, OnDestroy, OnInit, Inject } from '@angular/core'; | |
import { ActivatedRoute, NavigationEnd, Router } from '@angular/router'; | |
import { Meta, Title } from '@angular/platform-browser'; | |
import { filter, map, mergeMap } from 'rxjs/operators'; | |
import { DOCUMENT, PlatformLocation } from '@angular/common'; | |
@Directive({ | |
selector: '[appSeo]' | |
}) |
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 { FormControl, FormGroup } from '@angular/forms'; | |
export class PasswordValidator { | |
// If our validation fails, we return an object with a key for the error name and a value of true. | |
// Otherwise, if the validation passes, we simply return null because there is no error. | |
static areNotEqual(formGroup: FormGroup) { | |
let firstControlValue: any; | |
let valid = true; |
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
<ion-app dir="{{textDir}}"> | |
<ion-split-pane> | |
<ion-menu class="app-sidemenu"> | |
<ion-header> | |
<ion-toolbar> | |
<ion-row class="user-details-wrapper"> | |
<ion-col size="4"> | |
<app-aspect-ratio [ratio]="{w: 1, h: 1}"> | |
<app-image-shell class="user-avatar add-spinner" [src]="'https://pbs.twimg.com/profile_images/722153095761903616/WjIKQ7Wm_400x400.jpg'"></app-image-shell> | |
</app-aspect-ratio> |
NewerOlder