[AngularJS] ng-option in component

2016-05-30 Thread abergdavid5
Hi! Is there anyway to get a expression as a binding to a component? option.value for option in model track by option.key I am trying to create a dropdownlist component and need the ng-option to be available outside the component. -- You received this message because you are subscribed to the

[AngularJS] Re: Angular2, How to set json data in another function

2016-05-30 Thread Sander Elias
Hi Sri, First, you are adding null code to your app. .subscribe( data => this.filter(data), err => console.error(err), () => console.log('done') ); is exactly the same as: .subscribe( this.filter, err => console.error("Oops, an err:",err), () => console.log('done') ); second

[AngularJS] Re: handling double clicks in ui-grid

2016-05-30 Thread Sander Elias
Hi Rajplayster, Make sure your dblClick event is bound before the normal click event. However, I would add a small 'edit' icon/button to each row. That is more ux-friendly.. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsu

[AngularJS] Re: best approach for aggregating many json files

2016-05-30 Thread Tito
Hi Sander Indeed it is not directly related to angular not yet at least, I mean the data will eventually be used by angular :) I will post elsewhere. Thanks for the input nonetheless!!! On Monday, May 30, 2016 at 7:05:59 PM UTC-7, Sander Elias wrote: > > Hi Tito, > > How is this related to angu

[AngularJS] Re: best approach for aggregating many json files

2016-05-30 Thread Sander Elias
Hi Tito, How is this related to angular? (as you are asking in a angular list group) Also, your question is almost impossible to answer without some more detail. For now, use a gulp watch task to process new files and add them to a db, which you clean on startup of your solution. Regards

[AngularJS] Re: Update ngFor when all data is processed in SQL Storage

2016-05-30 Thread Sander Elias
Hi Chris, The answer to that is not relevant for his question. However, as he is asking an ionic question, chances are very large that he is using Sqlite through a cordova plugin. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. T

[AngularJS] Re: Angular2 - Override Component

2016-05-30 Thread Sander Elias
Hi Stephane, Yes, the injector makes possible what you want. However, I would not do it quite like that. There is no problem in having multiple components using the same selector. Just use the component you need, at the place you need it. The only reason to do what you propose, is to replace a

[AngularJS] best approach for aggregating many json files

2016-05-30 Thread Tito
Greetings, I would like to aggregate multiple json files (bcs that is what I have been given and have no control over it) and serve the data in these files in an api using express.js. What would be best approach? I was thinking of dumping them to a cache server or some other volatile db of som

[AngularJS] Re: Update ngFor when all data is processed in SQL Storage

2016-05-30 Thread Chris Pawlukiewicz
What do you mean by SQL storage? Do you mean WebSQL? Or are you running SQL on a node server? On Friday, May 27, 2016 at 10:29:12 AM UTC-6, TiDiDoDa wrote: > > Here my view: >> >> >>... >> >> >> > And the js-part: > >> this.storage.query("SELECT * FROM news ORDER BY created DESC LIMIT 15").

[AngularJS] Angular2 - Override Component

2016-05-30 Thread Stephane Dion
It is possible to override a component with a new implementation like we can do with the services? I want to be able to replace the template or the css of a Component. @Component({ selector: 'foo', template: 'foo' }) export class FooComponent {} @Component({ selector: 'my-app',

[AngularJS] handling double clicks in ui-grid

2016-05-30 Thread rajplayster
Hi, I have a ui-grid with ui-grid-selection and ui-grid-row-edit directives. When I click on a row I need it to be selected but when I double click I need the editor to open up but the gridApi.selection.on.rowSelectionChanged to not fire. Currently double clciking on a row fired the rowSelectionC

[AngularJS] Angular2, How to set json data in another function

2016-05-30 Thread sri devi
I need to set json data from one to another function. But i can't. Is there any mistaken in my code. ngOnInit() { this.getNames(); } getNames() { this.http.get('app/mock/names.json') .map((res:Response) => res.json()) .subscribe( data => this.filter(data),

[AngularJS] Re: Working with child routes in the new component router

2016-05-30 Thread kfirgez
Oh I see thanks! :) -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.

[AngularJS] Re: Working with child routes in the new component router

2016-05-30 Thread Sander Elias
Ok, there is still a lot of work going on in this area. A new RC is expected within the next 7 day's (No official word on this, just gossip, and educated guesses ;)) I think a lot of those issues will be addressed in that. Regards Sander -- You received this message because you are subscribed

[AngularJS] Re: Working with child routes in the new component router

2016-05-30 Thread kfirgez
I was trying to use the new router, with the beta(deprecated) router it actually works On Monday, May 30, 2016 at 10:40:23 AM UTC+3, Sander Elias wrote: > > Hi Kfirgez, > > Are you, (or is that seed) using the deprecated router, or the new one? > (both have still issue sin this area, one of them

[AngularJS] Re: Working with child routes in the new component router

2016-05-30 Thread Sander Elias
Hi Kfirgez, Are you, (or is that seed) using the deprecated router, or the new one? (both have still issue sin this area, one of them will get those fixed;)) Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this

[AngularJS] Re: Canvas check drawing occupy areas

2016-05-30 Thread Sander Elias
Hi Chong, That is a lot of code. Your chances of getting a helpful answer grow tremendously if you link a to a plunker instead of pasting a large body of code here. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe f

[AngularJS] Re: Angular2 using button to dynamically add form elements?

2016-05-30 Thread Sander Elias
Hi Robert, Here is a quick sample on how to add a row. For the edit part and so on, you can add one or more extra components, but I think this will get you started.. Regards Sander -- You received this message because you are subscribed to