Giter Site home page Giter Site logo

Comments (3)

elmarburke avatar elmarburke commented on May 29, 2024

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.

redgeoff avatar redgeoff commented on May 29, 2024

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.

redgeoff avatar redgeoff commented on May 29, 2024

I just submitted a pull request (#13) that should fix this.

from hoodie-plugin-angularjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.