Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useView doesn't load views relative to the view model? #398

Closed
glen-84 opened this issue Apr 13, 2016 · 2 comments
Closed

useView doesn't load views relative to the view model? #398

glen-84 opened this issue Apr 13, 2016 · 2 comments
Labels

Comments

@glen-84
Copy link

glen-84 commented Apr 13, 2016

I have a structure like this:

/src
    /app
        /view-models
            app.ts
            index.ts
        /views
            app.html
            index.html
    /events
        /matches
            /view-models
                view.ts
            /views
                view.html
    index.html
    main.ts

For the index module, I load the view using @useView("../views/index.html").

For the view module, if I try to do the same thing, it tries to load the view from /assets/app/views/view.html instead of /assets/events/matches/views/view.html – shouldn't it load the view relative to the view model?

Note: assets is the folder that the files are built into.

@EisenbergEffect
Copy link
Contributor

It should indeed. Please create a simple production using the es2016 nav skeleton and attach it here. That will help us locate the bug and fix it. Thank you.

@glen-84
Copy link
Author

glen-84 commented Apr 13, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants