Skip to content

How to get parsed data ( key -> value) of Class Decorator  #99

Open
@knlodha

Description

@knlodha

Hi @buehler ,
I can see that, I am not getting parsed data for class decorator. How can I get this data provided in decorator. I am using it for angular files

e.g.
import { Component } from '@angular/core';

@component({
selector: 'app-root',
template: <h1>{{title}}</h1> <h2>My favorite hero is: {{myHero}}</h2>

})
export class AppComponent {
title = 'Tour of Heroes';
myHero = 'Windstorm';
}

Here , I need selector and template values from decorator. Is there any way / configuration to get this data using parseSource or parseFile ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions