[AngularJS] Angular.js and Google Pagespeed Insights: render-blocking JavaScript and CSS in above-the-fold content

2015-02-15 Thread tomw
Hi, recently I was just testing a new website build with angular using Google Pagespeed Insights https://developers.google.com/speed/pagespeed/insights/. Taking care of all the image compression, caching and sizing issues beforehand the analysis left me with a score of 87/100 - with the

[AngularJS] Service vs Factory question...

2015-02-15 Thread Michael Costa
I've never quite understood the word 'singleton'. ; My understanding is that using a service over a factory provides the benefit of loading data only once per page-refresh and shares it across the application, whereas the factory instantiates a fresh call to the data source every-time

[AngularJS] Re: unknown provider when injecting an object in controller, object from resolve method

2015-02-15 Thread Perry Gollo
I love you guys!! have been banging my head for hours... On Wednesday, 9 October 2013 16:16:15 UTC+1, agileDev wrote: Eurika!! Yes that was it, you're a genius @OpenNota. Thank you so much :) On Wednesday, October 9, 2013 11:07:46 AM UTC-4, OpenNota wrote: Just remove ng-controller=...

Re: [AngularJS] Service vs Factory question...

2015-02-15 Thread Tony pee
not really. The difference is really about style. With a service, you get an instance of it (as a singleton) as a factory, you get whatever the function returns (as a singleton). A singleton basically means that there will always only be one (every accessor references the same instance) So, to

Re: [AngularJS] Re: How to get data from database using $resource attribute

2015-02-15 Thread Tripuramallu Bhagyasri
Hi Sander, I am also getting error GET http://localhost/8082/RESTJerseyExample/rest/restfultest/GetCarValues net::ERR_CONNECTION_REFUSED [image: Inline image 2] here GetCarValues file contains error like this I am not getting what is that error ThanksRegards, Bhagyasri.T -- You

Re: [AngularJS] Re: How to get data from database using $resource attribute

2015-02-15 Thread Tripuramallu Bhagyasri
Hi Sander, I have changed javascript like this Myapp.js var myapp=new angular.module(myapp,[ngResource]); myapp.controller(MainCtrl,[$scope,$resource,function($scope,$resource){ var user=$resource( http://localhost:8082/RESTJerseyExample/rest/restfultest/GetCarValues;); $scope.list=function(){