Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There should be some rules covering the templates #73

Closed
MFateen opened this issue Jul 26, 2016 · 1 comment
Closed

There should be some rules covering the templates #73

MFateen opened this issue Jul 26, 2016 · 1 comment

Comments

@MFateen
Copy link

MFateen commented Jul 26, 2016

There is currently no way to lint the templates and check whether the selectors are correctly written or even if they are closed. for example if I have a component Sample with selector sample and then in a different file I have :

Import Sample from './sample.ts';
@Component({
  selector: 'example',
  template: `<samples></samples>`
})

This currently doesn't produce any linting errors, although samples is neither a native html selector nor the selector of the imported file sample.ts.

another example is having template: '<sampl></sample>' . I believe that there should be simple parsing for the templates (at least the inline ones).

@mgechev
Copy link
Owner

mgechev commented Jul 26, 2016

This requires offline compilation and is already in the roadmap.

@mgechev mgechev closed this as completed Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants