• How can i use angular js/ionic with the wp rest api i have install the wp rest api on my site and i got the page here is the api https://thetexaschicken.com/wp-json/wp/v2/pages/?
    here is my angular code

         $http.get('https://thetexaschicken.com/wp-json/wp/v2/pages/?').success(function (data) {
            $scope.content = data;
        });

    HERE Is my ionic code:

    <ion-item ng-repeat="content as page">
        <ion-thumbnail item-left>
          <img src="img/thumbnail-totoro.png">
        </ion-thumbnail>
        <h2>{{ page.rendered }}</h2>
        <p>Hayao Miyazaki ? 1988</p>
        <button ion-button clear item-right>View</button>
      </ion-item>

    i don’t have problems with other apis please help

    THANK YOU

    • This topic was modified 7 years, 10 months ago by Steven Stern (sterndata). Reason: moved from "fixing wordpress" to "developing"
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to use angular js/ionic with wp rest api’ is closed to new replies.