{"tags":[{"type":"component","string":"nav","html":"<p>nav</p>"},{"type":"param","string":"{pseudo} whatever","name":"whatever","description":"","types":["pseudo"],"typesDescription":"<a href=\"pseudo.html\">pseudo</a>","optional":false,"nullable":false,"nonNullable":false,"variable":false,"html":"<p>{pseudo} whatever</p>"}],"description":{"full":"<p>this is a cool nav component</p>\n<p>what do you think?</p>","summary":"<p>this is a cool nav component</p>","body":"<p>what do you think?</p>"},"isPrivate":false,"isConstructor":false,"isClass":false,"isEvent":false,"ignore":false,"line":2,"codeStart":29,"code":"@inject(EventAggregator, Element)\n@customElement('aire-nav')\nexport class AireNav {\n\n  @bindable\n  private router: Router;\n\n  @bindable\n  normalizeTitle    : (n : NavModel) => string;\n\n  ul: HTMLElement;\n\n  constructor(readonly bus: EventAggregator, private element: Element) {\n\n  }\n\n  protected navigation() : NavModel[] {\n    if (this.router) {\n        let nav = this.router.navigation,\n            current = new Map<string, NavModel>();\n        for(let n of nav) {\n            current.set(n.config.title, n);\n        }\n        return Array.from(current.values());\n    } else {\n      return [];\n    }\n  }\n\n  fire() {\n    this.bus.publish(Events.NavigationEvent.ITEM_CLICKED, {});\n    return true;\n  }\n\n\n    attached() {\n        dom.decorateTo(this.element, this.ul, \"default\", \"uk-nav-default\");\n        dom.decorateTo(this.element, this.ul, \"primary\", \"uk-nav-primary\");\n        dom.decorateTo(this.element, this.ul, \"center\", \"uk-nav-center\");\n    }\n\n}","ctx":false,"sections":[{"name":"usage","examples":[{"name":"OtherRouter","html":"<aire-nav router.bind=\"router\"></aire-nav>","string":" aire-nav(router.bind=\"router\")","pug":"aire-nav(router.bind=\"router\")"},{"name":"Hello World","html":"<aire-nav router.bind=\"router\"></aire-nav>","string":" aire-nav(router.bind=\"router\")","pug":"aire-nav(router.bind=\"router\")"}],"description":{"html":"<p>This is a cool bean<br />\n#whatever <em>whatever</em></p>","string":" This is a cool bean\n #whatever _whatever_"},"title":{"html":"<p>Usage</p>","string":"Usage"}}],"directory":"test"}