CRUD with AngularJS

3

I have a single-page and need to save the value of a variable in the database. How to do this using angular js?

This variable receives the title from my single-page. This title will be customized by the customer.

Would anyone have a clue how I could do this just using client-side technologies?

    
asked by anonymous 10.11.2014 / 19:21

2 answers

3

I'm studying exactly on these days, for this, take a look at ngResource ( link $ resource ). You will need a service (such as PHP) and a database (such as MySQL) to handle the data.

    
10.11.2014 / 21:28
1

Unfortunately, this is not possible using only client-side technologies (using file: // as repository) - AngularJS will require valid URLs.

Establish a local HTTP service (NodeJS, IIS and Apache are some candidates) and serve your files from them.

As for client-side databases, one suggestion is IndexedDB .

    
10.11.2014 / 19:31