How to use angular js/ionic with wp rest api | WordPress.org
Skip to content
Forums
Skip to content
Forums
Developing with WordPress
How to use angular js/ionic with wp rest api
junknukhs
(@junknukhs)
9 years, 3 months ago
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
here is my angular code
$http.get('http://thetexaschicken.com/wp-json/wp/v2/pages/?').success(function (data) {
$scope.content = data;
});
HERE Is my ionic code:




{{ page.rendered }}


Hayao Miyazaki • 1988




i don’t have problems with other apis please help
THANK YOU
This topic was modified 9 years, 3 months ago by
Steven Stern (sterndata)
. Reason: moved from "fixing wordpress" to "developing"
Viewing 1 replies (of 1 total)
BMO
(@skypressatx)
9 years, 3 months ago
What version of AngularJS are you running? I imagine you’d be coming across
$sce
) issues by using the rendered content.
In particular, you might want to investigate
$sce.trustAsHtml
Dig into these links, they might be helpful.
This reply was modified 9 years, 3 months ago by
BMO
Viewing 1 replies (of 1 total)
The topic ‘How to use angular js/ionic with wp rest api’ is closed to new replies.
Tags
angularjs
ionic
wp rest api
In:
Developing with WordPress
1 reply
2 participants
Last reply from:
BMO
Last activity:
9 years, 3 months ago
Status: not resolved
Topics
Topics with no replies
Non-support topics
Resolved topics
Unresolved topics
All topics