mirror of https://github.com/status-im/consul.git
25 lines
501 B
JavaScript
25 lines
501 B
JavaScript
import Component from '@glimmer/component';
|
|
import { inject as service } from '@ember/service';
|
|
import { action } from '@ember/object';
|
|
import { tracked } from '@glimmer/tracking';
|
|
|
|
export default class RouteComponent extends Component {
|
|
@service('routlet') routlet;
|
|
|
|
@tracked model;
|
|
|
|
get title() {
|
|
return this.args.title;
|
|
}
|
|
|
|
@action
|
|
connect() {
|
|
this.routlet.addRoute(this.args.name, this);
|
|
}
|
|
|
|
@action
|
|
disconnect() {
|
|
this.routlet.removeRoute(this.args.name, this);
|
|
}
|
|
}
|