this is my first time trying to get the json from local webService or from
a text file.
i am using
<!--AngularJS v1.3.15-->
<script src="Scripts/angular.min.js"></script>
<script src="Scripts/angular-route.min.js"></script>
<script src="Scripts/angular-resource.min.js"></script>
<script src="Scripts/angular-animate.min.js"></script>
and the code
'use strict';
var path1 =
'http://localhost:53234/test/json/monthContainerJson.txt';
//'test/json/monthContainerJson.txt'
//wsWorkingHH.asmx/getMMSum
/* App Module */
var whApp = angular.module('whApp', ['whServices']);
/* Services */
var whServices = angular.module('whServices', ['ngResource']);
whServices.factory('srvMM', ['$resource', function ($resource) {
return $resource(path1
, {}
, {
query: { method: 'GET', params: {},
isArray: true }
}
);
}]);
var tryQ = whServices.query(function () {});
alert(tryQ[0]);
what is wrong - the path? the syntax?
thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.