Open unional opened 7 years ago
FYI it looks like this is now released: https://blogs.msdn.microsoft.com/typescript/2017/04/27/announcing-typescript-2-3/
syntax highlight / add features inside template tags in the following scenarios:
class El {
static view = '<template></template>'
}
class El {
static view = {
template: `<template></template>`,
dependencies: ....
}
}
class El {
static view() {
return {
template: `<template></template>`,
...
}
}
related: https://github.com/aurelia/templating/pull/614
@inlineView('<template></template>')
also nice if the expression inside listener can be highlight differently,
<button click.trigger="onClick($event)"></button>
onClick($event)
is currently treated as a string
I'm submitting a feature request
A placeholder issue for utilizing the extension framework when it lands: https://github.com/Microsoft/TypeScript/issues/6508
It should simplify and improve this extension quite a bit.