taggedjs
Version:
tagged template reactive html
15 lines • 701 B
JavaScript
import { getSupportWithState } from "../interpolations/attributes/getSupportWithState.function.js";
import { getSupportInCycle } from "../tag/getSupportInCycle.function.js";
import { ValueTypes } from "../tag/index.js";
import { processSubscribe } from "../tag/update/processSubscribe.function.js";
/** Have an html tagged value as value of subscribe emissions. Automatically unsubscribes for you */
export function subscribe(Observable, callback) {
return {
tagJsType: ValueTypes.subscribe,
processInit: processSubscribe,
Observable,
callback,
states: getSupportWithState(getSupportInCycle()).states,
};
}
//# sourceMappingURL=subscribe.function.js.map