GithubHelp home page GithubHelp logo

jagonalez / aurelia-navigation-menu Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 6.0 57 KB

Allows Eager Loading of child routers and creates a navigation menu with all navigation routes

License: Creative Commons Zero v1.0 Universal

JavaScript 97.22% HTML 2.78%

aurelia-navigation-menu's People

Contributors

jagonalez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aurelia-navigation-menu's Issues

System.config Error

By including this:

import { NavigationMenu } from 'aurelia-navigation-menu';

I get the following error:

TypeError: System.config is not a function
at Object.eval (config.js?af18:1)
at eval (aurelia-navigation-menu:141)
at Object.aurelia-navigation-menu (app.bundle.js:5827)
at webpack_require (app.bundle.js:20)
at WebpackLoader.eval (aurelia-loader-webpack.js?b873:176)
at step (aurelia-loader-webpack.js?b873:36)
at Object.eval [as next] (aurelia-loader-webpack.js?b873:17)
at eval (aurelia-loader-webpack.js?b873:11)
at new Promise ()
at __awaiter (aurelia-loader-webpack.js?b873:7)

The sample app works fine.

navModel.href undefined

Note: I don't have a code sample yet, as the problem is not showing up when I try to repro using the example code you provided.

I'm having an issue with implementing the navmenu with a larger codebase.

Third level items are showing up, but with the incorrect href. From debugging, it seems that where nav.href is set in navigation-menu.js, navModel.href is undefined. The hrefs are showing up like 'undefined/mynestedpath' instead of 'mysection/mynestedpath'

Note that I am not blocking activate for my app on this.navigationMenu.ensureMenu(), because that would prevent my app from fully loading.

I'm not sure what to do exactly- if you have time to reach out to me, I am on https://gitter.im/aurelia/Discuss

[Question/Bug] App do not start

The app does not start when using

activate(params) {
    return this.navigationMenu.ensureMenu()
  }

when I change it to

activate(params) {
   this.navigationMenu.ensureMenu()
  }

it works; however, I am not sure that will it work properly since the promise might not be resolved when activate method is done?

type definition ?

Any chance of including a a definition file into the plugin for those of us who use Typescript ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.