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
constructor(private router: Router, | |
private route: ActivatedRoute | |
private titleService: Title) { | |
router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe(() => { | |
let title = this.getTitleFromRoute(route.root) + ' - Dinolytics'; | |
this.titleService.setTitle(title); | |
}); | |
} |
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-select #websiteSelect | |
[items]="selectWebsites$ | async" | |
formControlName="website" | |
placeholder="Select a website" | |
bindLabel="name" | |
labelForId="website"> | |
</ng-select> |
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
constructor(private router: Router) { | |
router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe(() => { | |
document.getElementsByTagName('h1')[0].focus(); | |
}); | |
} |
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
public deleteEmail(index) { | |
// remove email field | |
// set focus | |
document.getElementById('emails-' + (index - 1)).focus(); | |
} | |
public removeAllExternalEmails() { | |
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
<input focus-input formControlName="address" id="emails-{{ ii }}" class="form-control" type="email" name="emails[]" /> |
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> | |
<button type="button" (click)="toggleForm()"> | |
<ng-container *ngIf=" ! showForm">Show form</ng-container> | |
<ng-container *ngIf="showForm">Back</ng-container> | |
</button> | |
<ng-container *ngIf=" ! showForm"> | |
<table id="mytable"></table> | |
</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 id="skip-link"> | |
<a [href]="skipLinkPath">Skip to content</a> | |
</div> | |
<main id="main-content" class="content"> | |
<!--Main content goes here--> | |
</main> |
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 [routerLink]="['./']" fragment="main-content">Skip to content</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
"dependencies": { | |
"bower": { | |
"gulp": "^3.8.8", | |
"gulp-angular-templatecache": "^1.4.2", | |
"gulp-concat": "^2.4.1", | |
"gulp-ng-annotate": "^0.3.3", | |
"gulp-uglify": "^1.0.1", | |
"gulp-watch": "^1.1.0", | |
"yargs": "^1.3.2", | |
"gulp-if": "^1.2.5", |
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
<?php | |
interface BaseRepository { | |
public function find($id); | |
} | |
class BaseRepository implements BaseRepository { | |
private $model; |
NewerOlder