Questions tagged [angular2-render]

5 questions
30
votes
3 answers

Angular Renderer2 remove listener

Is it possible to remove listeners with the new angular 4 renderer? here is the interface: abstract listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => boolean | void): () => void; In the renderer v1…
Serginho
  • 7,291
  • 2
  • 27
  • 52
1
vote
1 answer

Javascript to Angular 2 : document.querySelector('el').emit('em') to @viewChild

How to convert HTML JS document.querySelector('#fading-cube').emit('fade'); This…
KitCat
  • 243
  • 3
  • 12
1
vote
0 answers

How to Render an Angular2 Component into a specific dynamically loaded DOM element?

I have a component that dynamically loads and creates a video player with jQuery. After it is done, it looks something like this:
1
vote
1 answer

Who validates the property?

I'm trying to find the piece of code that is responsible for property value validation. For example I have:

And I bound myColor variable with input: I expect change of…

Stepan Suvorov
  • 25,118
  • 26
  • 108
  • 176
1
vote
1 answer

prevent child component render before my parent controller resolve the data

My situation I have an app.module, wich bootstrap app.component and the router base href = '/' which loads my home.component where i have method onInit() where i getting my data from the api using RiotService this.riot.Summoner.byName(this.summoner,…
ArtemSky
  • 1,173
  • 11
  • 20