Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / angular/src/public-api / SxTeardown

Interface: SxTeardown ​

Defined in: projects/libraries/streamix/angular/src/lib/compiled-view.ts:22

Teardown returned by a compiler-generated sx setup.

SxBindingTable satisfies this contract, as does the { destroy() {} } object emitted for compiled structural blocks.

Methods ​

destroy() ​

destroy(): void

Defined in: projects/libraries/streamix/angular/src/lib/compiled-view.ts:23

Returns ​

void


ɵrestoreMarkers()? ​

optional ɵrestoreMarkers(): void

Defined in: projects/libraries/streamix/angular/src/lib/compiled-view.ts:30

Puts the compiled blocks' marker elements back, so a rebind re-resolves the template's original element paths. Only a rebind needs this: during final teardown the view is going away, and mutating its DOM there can upset Angular's own destroy pass.

Returns ​

void

Released under the MIT License.