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:
>>
>> <ion-card *ngFor="let n of news">
>> ...
>> </ion-card>
>>
>>
> And the js-part:
>
>> this.storage.query("SELECT * FROM news ORDER BY created DESC LIMIT 15").
>> then(
>
> (response) => {
>
> if(response.res.rows.length > 0){
>> for(let i = 0; i < response.res.rows.length; i++){
>> this.news.push(response.res.rows[i]);
>> }
>> }
>> }
>> );
>
>
> Maybe more informations for understanding:
> I fetch data from web page, store it in sql storage and get the data with the
> above js-part from sql storage. Maybe anyone knows a better solution...
>
>
--
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 [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.