Implement context mechanism to pass default attributes to descendant components.
13 lines
222 B
JavaScript
13 lines
222 B
JavaScript
"use strict";
|
|
|
|
import { m } from "./components";
|
|
|
|
export function component() {
|
|
return {
|
|
view: function(vnode) {
|
|
document.title = "Error! - GenieACS";
|
|
return m("p.error", vnode.attrs.error);
|
|
}
|
|
};
|
|
}
|