#Is There a Tool in Angular to Parse HTML and Extract Expressions Like {{ ... }} and [...]?

1 messages · Page 1 of 1 (latest)

scenic pond
#

I’m looking to parse HTML and extract template expressions like {{ ... }} and [...].
Is there a tool in Angular that can help with this?

Additionally, is there a tool that can detect when a variable used in the template isn’t defined in the component class?
For example:

template: `{{ hello }}` // <-- 'hello' is not defined in the class
export class Foo { }
pine gate
hollow dome
scenic pond
#

@pine gate @hollow dome thank you 🙂

slate sand
#

Doesn't strictTemplates in angularCompilerOptions do the second thing?