Questions tagged [p3x-angular-compile]

Use this tag for all questions to the p3x-angular-compile module, which provides dynamic rendering of markup for Angular.

A component for Angular which allows dynamic rendering of a string containing markup. A binding context can be passed to the component, allowing to utilize Angular data binding in the markup.

4 questions
3
votes
0 answers

can't compile custom component dynamically in nativescript angular

I'm using a Angular Dynamic Compile component called P3X Angular Compile, that turns a string into a compiled component in my nativescript project. link : https://npm.taobao.org/package/p3x-angular-compile . I install that via npm in my {N} project…
1
vote
0 answers

Angular 6 - get element from dynamically compiled html

I have HTML string returned from an external API call. I want to compile that HTML string and get a compiled htmlElement by id 'test-input'. I keep getting null or undefined when getting an element from DOM. I am using the library for the…
npabs18
  • 167
  • 2
  • 10
0
votes
2 answers

Reference template variable is undefined in component when suing p3x-angular-compiler

I'm using p3x-angular-compiler plugin and I have a reference variable in my html and I'm trying to get it in component. HTML -
ts - @ViewChild('scrollMe') private chatScrollContainer: ElementRef; when i console…
indrajeet
  • 837
  • 10
  • 17
0
votes
1 answer

'foo' is not a known element when dynamically rendering HTML

I am trying to dynamically render a string containing HTML markup in Angular. The HTML should be 'Angular compiled', i.e. including data binding and rendering of components (the sort of things I did with $compile in AngularJS). I have the most part…
Marc
  • 12,706
  • 7
  • 61
  • 97