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

Support non-convention VM resolution #151

Open
MeirionHughes opened this issue Dec 16, 2016 · 1 comment
Open

Support non-convention VM resolution #151

MeirionHughes opened this issue Dec 16, 2016 · 1 comment

Comments

@MeirionHughes
Copy link
Contributor

MeirionHughes commented Dec 16, 2016

when bar.ts is:

useView("foo.html")
export class Bar{}

and ray.ts is

export class Ray{
  getViewStrategy() {
    return 'foo.html';
  }
}

then
foo.html should resolve to view-models ["bar.ts", "ray.ts"] and perform type-checking against both.

@petronellius
Copy link

petronellius commented Jan 3, 2017

Please, support also scenario when global custom view location convention is used by overriding ViewLocator.prototype.convertOriginToViewUrl method. In our project views and viewmodels differ with names (e.g. title.html and titleVM.ts).

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

No branches or pull requests

2 participants