Comments (3)
Hey Geoff,
thanks for you flowers! I think it has to do with CORS since you use a specific url.
Could you try this
.controller('TodoCtrl', function ($scope, hoodieStore) {
hoodieStore.('todo', {txt: 'clean dishes'})
})
from hoodie-plugin-angularjs.
Thanks for the tip, but I'm trying to use angular conventions to push to the todos array, e.g.
$scope.todos.push({txt: 'take out trash'});
If I use
hoodieStore.add('todos', {txt: 'clean dishes'});
then everything appears to work, but that defeats the purpose of using angular.
I also tried using
hoodieProvider.url('/');
just in case it was a CORS issue and that didn't appear to help either.
Is it possible that you angular binding is disabling the "dirty" flag used by hoodie to sync new data?
Do you have any fully functioning code using your binding that demonstrates adding new data to the scope?
from hoodie-plugin-angularjs.
I just submitted a pull request (#13) that should fix this.
from hoodie-plugin-angularjs.
Related Issues (20)
- Utilizing omnibinder HOT 3
- Publish to Bower HOT 1
- License HOT 2
- hoodiePromiseFnWrap Broken HOT 3
- getting back updated records HOT 4
- use grunt-hoodie / hoodie-server HOT 2
- $watch listener will not triggered if $state.go() immediately after changing scope object HOT 1
- Get CoverAll up and running HOT 4
- Callback after successful bind HOT 1
- Example of using Dependency Injection for hoodieStore HOT 1
- Username should be cleared on signout HOT 9
- wrap hoodie plugins
- Tag 0.1.1 release HOT 3
- Admin dashboard needed for newer hoodie versions
- Having problems with adding new data to store HOT 2
- Ghost items
- Don't dirty the global scope HOT 4
- Use ng-min HOT 1
- Make init easier HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hoodie-plugin-angularjs.