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
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
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=...
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
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
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(){