AlaSQL / alasql

AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.
http://alasql.org
MIT License
7.04k stars 659 forks source link

Typescript 2 documentation. #883

Open bendraaisma-zz opened 7 years ago

bendraaisma-zz commented 7 years ago

Hello,

Could you include a better example on your WIKI page on how to configure one NG2 project using AlaSQL.

I have added a comment on (issue: https://github.com/agershun/alasql/issues/738) on how to do that.

Thanks regards Bernard.

mathiasrw commented 7 years ago

Hi @bendraaisma

Thank you so much for sharing your insight.

I was of the impression that #738 was about Angular 2 so I placed the content on https://github.com/agershun/alasql/wiki/Angular.js

But the wiki page you link to and and the title on this issue states "typescript". Is it because typescript is used for angular 2 always?

I would love to undertand this so we can get the documentation to where it can help the most people

Janatbek commented 7 years ago

How to write multiline statement in typescript with angular4? in jsfiddle itworks but in typescript it didn't. any help appreciated.

public testAlaSQLExcelExport(): void { var result = alasql('SELECT [2],[3],[6], COUNT(*) FROM ? \ WHERE [11] = \"Z21D\" AND [15] = \"8439204\" AND [12] = \"3449853\" AND [1] = \"RPP\" \ GROUP BY [2],[3],[6]', [this.dataSet]); console.log(result) }

mathiasrw commented 7 years ago

Please make a new issue with the question