lekhmanrus / ngx-pug-builders

Angular Pug Builders
MIT License
24 stars 4 forks source link

Angular 15+ Template Concatenation #6

Closed lixaotec closed 1 year ago

lixaotec commented 1 year ago

Documentation Feedback

Dear fellows,

I start by apologize as I know this might not be the best place to seek help.

Just noticed that your lib accomplish something I was looking for.

I need to get angular to concatenate templates in a component, and I could do that until v9- by simply using import template from './temp.html' and then at @Component directive by template: template1 + template2 .. it used to work.

However I cant do that more in v13+

Could you provide me some help in order to achieve that?

Thank you so much

lekhmanrus commented 1 year ago

Hi @lixaotec,

You can simply have

@Component({
  templateUrl: './test.pug',
  //  ...
})

and inside your test.pug

include ./a
include ./b