Thanks Sander for the help

Yes, I am facing integration issues with polymer webcomponent with Angular2.

Custom elements that you are referring, is it native javascript web 
componets as below

class HelloElement extends HTMLElement {
  // Monitor the 'name' attribute for changes.
  static get observedAttributes() {return ['name']; }

  // Respond to attribute changes.
  attributeChangedCallback(attr, oldValue, newValue) {
    if (attr == 'name') {
      this.textContent = `Hello, ${newValue}`;
    }
  }}
// Define the new element
customElements.define('hello-element', HelloElement);


<hello-element name="Anita"></hello-element>


Currently trying with native HTML, javascript, CSS, as I gave up using 
polymer with Angular 2 for now.

And also exploring other options for webcomponents just to create reusable 
HTML templates



On Thursday, June 8, 2017 at 1:46:25 AM UTC-5, Sander Elias wrote:
>
> Hi,
>
> For now, I would use Custom Elements, with a couple of polyfills. I would 
> not use polymer. While I like polymer on its own, it has its own set of 
> issues. In most cases Polymer and Angular work quite well along with each 
> other, but there are more edge-cases as you might expect. Solving those 
> turns out to be not as easy. 
>
> Be aware, that there are known flaws in those polyfills. Not big one's but 
> in highly specialised cases those might bite.
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to