--single-run
?<arguments>run test -- --single-run</arguments>
mvn install
, если не хотите устанавливать собранные артефакты в ~./m2/repository
. Достаточно mvn verify
.@Component({
template: `<ng-container *ngComponentOutlet="myComponent"></ng-container>`
})
export class MyContainerComponent {
@Input()
myTemplate: string;
get myComponent(): Type<any> {
const template = this.myTemplate;
@Component({template})
class MyComponent {
};
return MyComponent;
}
}
search.value. Нет переменной search в области видимости
template
. Переписать можно вот так:<template ngFor let-row [ngForOf]="review.penalty">
<tr *ngIf="row.sum > 10">
<td>{{row.name}}</td>
<td>{{row.sum | number:'.2'}}</td>
</tr>
</template>
@Component({
selector: 'app-step-controls',
template:
`
<div>
<ng-content></ng-content>
</div>
`,
exportAs: 'appStepControls'
})
export class AppStepControlsComponent {
}
<app-step-controls #ascs="appStepControls">
<button>Назад</button>
<button (click)="ascs.toNextStep('test')">Вперед</button>
</app-step-controls>
.filter((event: Event) => event instanceof NavigationEnd).subscribe(....)
@NgModule({
providers: [
{
provide: BetterHttp ,
useFactory: (xhrBackend: XHRBackend, requestOptions: RequestOptions) => {
return new SecurityHttp(xhrBackend, requestOptions, authService, router);
},
deps: [XHRBackend, RequestOptions]
},
{
provide: Http,
useExisting: BetterHttp,
}
]
})
export class CModule {
}
@Component({
selector: 'my-component'
})
export class MyComponent {
@Input()
shown: boolean;
@Output()
shownChange = new EventEmitter<boolean>();
onClick():void {
this.shown = false;
this.shownChange.emit(this.shown);
}
}
<my-component [(shown)]="property"></my-component>