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
ngOnInit() | |
{ | |
this.routerStateDataId = history.state['dataId']; | |
} |
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 navigationExtras: NavigationExtras = { | |
state: { dataId: A.component.dataId}, | |
}; | |
this.router.navigate([A.component.urlOfComponentE], navigationExtras); |
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
name: 'Dependabot -- $(Date:yyyyMMdd)$(Rev:.r)' | |
jobs: | |
- job: 'Dependabot' | |
pool: | |
# requires macos or ubuntu (windows is not supported) | |
vmImage: 'ubuntu-latest' | |
# Vars to be passed to the docker image | |
variables: |
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 [formGroup]="companyForm"> | |
<div> | |
<label for="companyName">Company Name</label> | |
<input id="companyName" type="text" formControlName="companyName" /> | |
</div> | |
<ng-container formArrayName="admins"> | |
<ng-container *ngFor="let adminForm of admins.controls; let index = index"> | |
<div [formGroupName]="index"> | |
<input id="name" type="text" formControlName="name" /> | |
<input id="email" type="text" formControlName="email" /> |
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 } from '@angular/core'; | |
import { FormArray, FormBuilder, FormControl, Validators } from '@angular/forms'; | |
@Component({ | |
selector: 'app-company-view', | |
templateUrl: './company-view.component.html', | |
styleUrls: ['./company-view.component.scss'] | |
}) | |
export class CompanyViewComponent implements OnInit { |
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 formArrayName="admins"> | |
<ng-container *ngFor="let adminForm of admins.controls; let index = index"> | |
<div [formGroupName]="index"> | |
<input id="name" type="text" formControlName="name" /> | |
<input id="email" type="text" formControlName="email" /> | |
</div> | |
</ng-container> | |
</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
{ | |
..., | |
"angularCompilerOptions": { | |
..., | |
"strictTemplates": false, | |
} | |
} |
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 formArrayName="admins"> | |
<ng-container *ngFor="let adminForm of admins.controls; let index = index"> | |
<div [formGroupName]="adminForm"> | |
<input id="name" type="text" formControlName="name" /> | |
<input id="email" type="text" formControlName="email" /> | |
</div> | |
</ng-container> | |
</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
<ng-container formArrayName="admins"> | |
<ng-container *ngFor="let adminForm of admins.controls; let index = index"> | |
<div> | |
<input id="name" type="text" formControlName="name" /> | |
<input id="email" type="text" formControlName="email" /> | |
</div> | |
</ng-container> | |
</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
adminForm = this.fb.group({ | |
name: new FormControl('', [Validators.required]), | |
email: new FormControl('', [Validators.required, Validators.email]), | |
}); |