-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Consider a view:
<template>
<input value.bind="data.property1" />
<input value.bind="data.property2" />
<input value.bind="data.property3" />
</template>
and a view model:
type Alias = {
property1: string;
property2: string;
};
export class ViewModel {
data: Alias = {
property1: 'test',
property2: ''
};
}
aurelia-template-lint currently ignores the non existing property3.
If the type alias in the view model is changed to an interface, a warning is correctly thrown:
interface Alias {
property1: string;
property2: string;
}
export class ViewModel {
data: Alias = {
property1: 'test',
property2: ''
};
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels