Questions tagged [angular2-output]

5 questions
8
votes
1 answer

Can output events be fired for dynamically created components

What I'm trying to do: Create components dynamically (done) Allow the dynamically created components to leverage "outputs" so that parent Components can listen for changes from the children. Here is a Plnkr for what I'm trying do to. Plnker ->…
Edward
  • 1,076
  • 1
  • 12
  • 24
1
vote
1 answer

Calling method on Template variables giving "undefined" exception

I have one parent containing two child components. AppComponent NotificationsComponent MoveCopyComponent I want to emit values of MoveCopyComponent to NotificationComponent. Whenever I emit i get a property undefined in the…
user6277510
0
votes
1 answer

passing data object through @Output

I'm not getting any errors, but the data isn't passing through to the parent component. The way I'm doing it is a bit different from all the examples I've been finding online so I'm already not too sure about how I have it set up. Here's the code…
Optiq
  • 2,835
  • 4
  • 33
  • 68
0
votes
1 answer

How to share params variables in child/parent components in Angular2 rc6 without using @Output?

I need to access a Params variable sent to a child component in the parent component. I have the following structure: Routing: (excerpt) { path: 'song', component: SongExerciseComponent, children: [ { …
Cruclax
  • 394
  • 3
  • 13
0
votes
1 answer

Use property from output binding in parent component

I'm sure I must be missing something simple here, but I have a child component which emits an object via an Output event. The parent component then subscribes to this output in a template like this:
Dan
  • 5,836
  • 22
  • 86
  • 140