немного подумав решил заменить конструкцию
Array(1000)].map(_ => <SomeComponent />);
<button (click)="showConfirmLogout()">Logout</button>
public showConfirmLogout(): void {
this._confirmService.open('Вы действительно хотите выйти?').then(() => {
this._logout();
});
}
private _logout(): void {
this._authService.logout().subscribe(() => {
this._router.navigate(['/login']);
});
}
<form [formGroup]="myForm" (ngSubmit)="saveFrom(statsForm.value)">
<table class="table table-responsive">
<thead>
<tr>
<th>Col 1</th>
<th>Col 2</th>
<th>Col 3</th>
<th>Col 4</th>
<th>Col 5</th>
<th></th>
</tr>
</thead>
<tbody formArrayName="itemRows">
<tr *ngFor="let row of [1, 2, 3, 4, 5]" app-data-table-row [row]="row"></tr>
</tbody>
</table>
</form>
@Component({
selector: '[app-data-table-row]',
template: `
<td>Hello, World!</td>
<td>Hello, World!</td>
<td>Hello, World!</td>
<td>Hello, World!</td>
<td>Hello, World!</td>
<td>Hello, World!</td>
`
})
export class AppDataTableRow {
@Input('row') row;
}
var rx=/(.+)/;
var emptyFn=function(){};
bot.sendMessage(this.userId, 'Where do you want to know the weather forecast?')
.then(() => {
this.onText(rx, msg => {
console.log(msg);
this.onText(rx, emptyFn);
});
});
let value = $(element).serialize();
$.ajax({
url: "/public/php/create-app.php",
type: "POST",
data: value,
success: function(data) {
if (data) {
//location.reload();
} else {
}
}
});
if(isset($_POST['app-name']){
\\..ваш код.
}