mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
+1
-1
@@ -12,7 +12,7 @@ export const LINK_TEMPLATE = `
|
||||
type Props = Destination;
|
||||
|
||||
export class Link<Env extends RouterEnv> extends Component<Env, Props, {}> {
|
||||
template = LINK_TEMPLATE_NAME;
|
||||
static template = LINK_TEMPLATE_NAME;
|
||||
href: string = this.env.router.destToPath(this.props);
|
||||
|
||||
async willUpdateProps(nextProps) {
|
||||
|
||||
@@ -9,7 +9,7 @@ export const ROUTE_COMPONENT_TEMPLATE = `
|
||||
</t>`;
|
||||
|
||||
export class RouteComponent extends Component<any, {}, {}> {
|
||||
template = ROUTE_COMPONENT_TEMPLATE_NAME;
|
||||
static template = ROUTE_COMPONENT_TEMPLATE_NAME;
|
||||
routes: any[] = [];
|
||||
constructor(parent, props) {
|
||||
super(parent, props);
|
||||
|
||||
Reference in New Issue
Block a user