如何使用angularjs服务呼叫

时间:2014-04-18 19:58:39

标签: javascript json angularjs service restangular

我有以下json数据服务文件。

    {
        "id": "exam_history:exam_colon",
        "text": "When was the last time you had a screening for colon cancer?",
        "answer": {
            "selectType": "single",
            "choice": [
                {
                    "description": "Never",
                    "value": "never",
                    "image": "icon-remove"
                },
                {
                    "description": "Past 2 years",
                    "value": "past_24_months",
                    "image": "cg-icon-2less"
                },
                {
                    "description": "2-5 years ago",
                    "value": "2-5_years",
                    "image": "cg-icon-2-5"
                },
                {
                    "description": "5+ years ago",
                    "value": "5+_years",
                    "image": "cg-icon-5plus"
                }
            ]
        }
    },

我想使用角度j来拉出这个问题并将其呈现在视图上。有人可以告诉我如何使用角度创建虚拟服务并使用它来显示视图??

0 个答案:

没有答案