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

Bug: file watching does not pick up components with multiple templateUrl #257

Closed
2 tasks
brandonroberts opened this issue Feb 9, 2023 · 0 comments · Fixed by #264
Closed
2 tasks

Bug: file watching does not pick up components with multiple templateUrl #257

brandonroberts opened this issue Feb 9, 2023 · 0 comments · Fixed by #264

Comments

@brandonroberts
Copy link
Member

brandonroberts commented Feb 9, 2023

Please provide the environment you discovered this bug in.

Dev

Which area/package is the issue in?

vite-plugin-angular

Description

If a component file contains multiple components with separate templateUrl files, it only picks up the first one for file watching and doesn't reload on changes to the other template files.

// component.ts
@Component({
  templateUrl: 'template1.html'
})
export class Cmp1 { }

@Component({
  templateUrl: 'template2.html`
})
export class Cmp2 { }

Please provide the exception or error you saw

No response

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No
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

Successfully merging a pull request may close this issue.

1 participant