template-lint icon indicating copy to clipboard operation
template-lint copied to clipboard

Support non-convention VM resolution

Open MeirionHughes opened this issue 8 years ago • 1 comments

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.

MeirionHughes avatar Dec 16 '16 23:12 MeirionHughes

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).

petronellius avatar Jan 03 '17 14:01 petronellius