1.000001 ** 2 ** 19 === 1.6892552271606103
1.000001 ** 2 ** 19 === 1.6892552271606103
1.000001 ** 2 ** 19 === 1.689255227180379
import { $localize } from '@angular/localize';
$localize`Hello, World`
public items: string[] = [
'Some content',
'Some content'
]
public panels: { [index: number]: boolean } = {};
<div class="panel" *ngFor="let content of items; index as i">
<button
type="button"
class="btn btn-primary"
(click)="panels[i] = !panels[i]"
[attr.aria-expanded]="!panels[i]"
[attr.aria-controls]="'collapseBasic' + i"
>
Toggle collapse
</button>
<hr />
<div [id]="'collapseBasic' + i" [collapse]="panels[i]">
<div class="well well-lg card card-block card-header">{{ content }}</div>
</div>
</div>
public panels: Array<{ content: string; collapsed: boolean }> = [
{
content: '',
collapsed: false
}
]
<div *ngFor="let panel of panels; index as i">
<button
type="button"
class="btn btn-primary"
(click)="panel.collapsed = !panel.collapsed"
[attr.aria-expanded]="!panel.collapsed"
[attr.aria-controls]="'collapseBasic' + i"
>
Toggle collapse
</button>
<hr />
<div [id]="'collapseBasic' + i" [collapse]="panel.collapsed">
<div class="well well-lg card card-block card-header">{{ panel.content }}</div>
</div>
</div>
import App from './App.svelte';
const app = new App({
target: document.body, // вместо document.body укажите любой другой html element
// например document.getElementById('some-widget');
// где some-widget - <div id="some-widget"></div>
props: {
// assuming App.svelte contains something like
// `export let answer`:
answer: 42
}
});