aurelia / template-lint

Sanity check of Aurelia-flavor template HTML
Apache License 2.0
56 stars 17 forks source link

Support for Array<Item> #111

Closed tdamir closed 7 years ago

tdamir commented 7 years ago

item.ts

export class Item {
  prop: string;
}

page.ts

import {Item} from "./item";
export class PageViewModel {
    items: Item[];
    itemsAsArray: Array<Item>;
}

page.html

<template>
   <div repeat.for="item in items">
    ${item.propN}
   </div>
   <div repeat.for="item in itemsAsArray">
    ${item.propN}
   </div>
</template>

On the first repeat we are getting correctly an error missing propN. There should be an error reported on the second repeat too.

MeirionHughes commented 7 years ago

should be fixed in 0.9.8