1
私はMailIDとSubscribedDateで構成されるデータを取得するために$ http.getを使用しています。 結果は$ scope.subscriberに割り当てられます。私のようなすべてのMAILID値の配列を持っているために生きるでしょう:["[email protected]","[email protected]", "[email protected]"]
\t getAll();
\t function getAll() {
\t \t var servCall = APIService.getSubs();
\t \t servCall.then(function (d) {
\t \t \t $scope.subscriber = d;
\t \t }, function (error) {
\t \t \t console.log('Oops! Something went wrong while fetching the data.')
\t \t });
何が問題なの? 'd.data'にはどのようなデータが返されますか? –
MailIDとSubscribedDateを持つjsonです。 – neela
JSONの構造は何ですか?あなたの質問にサンプルの回答を追加してください。 –