Git Product home page Git Product logo

angularjs-grails-sample's Introduction

Hantsy Bai(@hantsy)

hantsy

I'm Hantsy - a freelancer from China. Previously I worked with diverse teams around the world and helped numerous customers with professional service, not limited to coaching the team members, cooking startup POCs and delivering large-scale distributed applications.

Getting in touch

angularjs-grails-sample's People

Contributors

hantsy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angularjs-grails-sample's Issues

Missing parameter on EditBookCtrl

as.controller('EditBookCtrl', ['$scope', '$rootScope', '$http', '$location', 'apiUrl', function($scope, $rootScope, $http, $routeParams, $location, apiUrl)

should be

as.controller('EditBookCtrl', ['$scope', '$rootScope', '$http', '$routeParams', '$location', 'apiUrl', function($scope, $rootScope, $http, $routeParams, $location, apiUrl)

calls to the rest server are always done twice

Could you please check why after successfull login your sample make two calls to the rest server ?

in this trace you can notice these calls to the network

GET http://localhost:8080/angularjs-grails-sample/api/status
GET http://localhost:8080/angularjs-grails-sample/api/books.json
GET http://localhost:8080/angularjs-grails-sample/api/books.json

regards

GET http://localhost:8080/angularjs-grails-sample/api/status
200 OK 215ms
angular.js (line 9312)
HeadersResponseJSON

{"user":{"class":"com.hantsylabs.grails.example.security.Person","id":1,"accountExpired":false,"accountLocked":false,"enabled":true,"password":"$2a$10$J1jQcEQ21jgwOAqVFfzhy.jpLZZLPyGnz3oYL7UDb6Pnj6OCgdUFy","passwordExpired":false,"username":"test"}}

dont intercept...
app.js (line 68)
app.js (line 145)
GET http://localhost:8080/angularjs-grails-sample/api/books.json
200 OK 250ms
angular.js (line 9312)
HeadersResponseJSON

[{"class":"com.hantsylabs.grails.example.domain.Book","id":1,"author":"Gavin King","price":99.0,"title":"Java Persistence with Hibernate"},{"class":"com.hantsylabs.grails.example.domain.Book","id":2,"author":"Matt Raible","price":29.0,"title":"Spring Live"}]

GET http://localhost:8080/angularjs-grails-sample/api/books.json

200 OK
253ms
angular.js (line 9312)
HeadersResponseJSON

[{"class":"com.hantsylabs.grails.example.domain.Book","id":1,"author":"Gavin King","price":99.0,"title":"Java Persistence with Hibernate"},{"class":"com.hantsylabs.grails.example.domain.Book","id":2,"author":"Matt Raible","price":29.0,"title":"Spring Live"}]

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.