title: How to display list of json data using bullet in angularjs?
body: <p>I want to displaly if the answer is obj it shoud be display as paragraph and if it is array it should be display the list using bullets or numbered. eg,
   1. i like maths,
   2. it is not difficult</p>
  
  <p>my controller is,</p>
  
  <pre><code>    $scope.books = {
          "types": [
              {
                  "category": "subjects",
                  "sub": [
                      {
                          "question": "what is maths",
                          "answer": {
                             "obj": "it is a subject",
                             "array": [
                                  "i like maths",
                                  "it is not difficult"
                              ],
                          }
                      },
                      {
                          "question": "what is science  ?",
                          "answer": {
                             "obj": "it is a subject",
                             "array": [
                                  "i like maths",
                                  "it is not difficult"
                              ],
                          }
                      }
                  ]
              }
          ]
      }
  </code></pre>
  
  <p>My htlm code is,</p>
  
  <pre><code>     &lt;div ng-repeat="book in books.types"&gt;
       &lt;div ng-repeat="ans in sub.answer"&gt; 
          {{ans}}
        &lt;/div&gt;
       &lt;/div&gt;
  </code></pre>