[AngularJS] A2: Settting parent component property from child Component via @Input

2016-12-28 Thread Jan Kozak
I have a component parentComponent having property 'model' I pass part of the model into my child component using @Input binding: export class ItemListComponent { private el: HTMLElement; @Input('items') items: Item[]; @Input('filter') filter: Item[]; @Input('selected') selected:

[AngularJS] Re: NON html component element DOM properties

2016-09-15 Thread Jan Kozak
hello Sander, I do want. as wrote: hint would be appreciated. anyways, is it something like $attrs? On Tuesday, September 13, 2016 at 2:01:50 PM UTC+2, Sander Elias wrote: > > Hi Jan, > > Well, if you don't want to solve it using angular, you will need to re-ask > the question on a place where

[AngularJS] Re: NON html component element DOM properties

2016-09-13 Thread Jan Kozak
I don't think I'll get paid for research at the moment. I don't know the angular way. so hint would be appreciated. Jan On Monday, September 12, 2016 at 7:24:56 PM UTC+2, Sander Elias wrote: > > Hi Jan, > > Perhaps ask in a JQuery group? Or switch to the angular way of doing > things. Work your

[AngularJS] NON html component element DOM properties

2016-09-12 Thread Jan Kozak
Hello, This might be a noob question but: I have created a component grid, it is used like this: I am able to set its properties like this: $('.grid').width(availableWidth-165); $('.grid').height(availableHeight-105); But I am unable to retrieve these values (console):