This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<require from="nav-bar.html"></require> | |
<!-- this nav works --> | |
<nav-bar router.bind="router"></nav-bar> | |
<div class="page-host" style="margin-top:50px"> | |
<router-view router.bind="router"></router-view> | |
</div> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function keyFirstSearch(obj, term) { | |
for (const key of Object.keys(obj)) { | |
if (key === term) { | |
return obj[term]; | |
} | |
const prop = obj[key]; | |
if (typeof prop === 'object') { | |
const nested = keyFirstSearch(prop, term); | |
if (nested !== undefined) { |
OlderNewer