Hello Author such a great plugin to work around, Thanks for the one
How can i control menu as dynamic from angualar controller. How can i fetch the post or page id for the controller ?
`.controller(‘indexCtrl’, function ($scope) {
$scope.headers=[
{home:”Home”, url:”home”},
{home:”Blog”, url:”blog”},
{home:”Full Width”, url:”fullwidth”},
{home:”Gallery”, url:”gallery”},
{home:”Contact”, url:”contact”},
{home:”test”, url:”test”}
];
$scope.toggleclass = function() {
$scope.isactive = !$scope.isactive;
}
$scope.toggleactive=function () {
$scope.isactive = !$scope.isactive;
}
})’
For sample i have used test menu in controller, How can i get to work this ?
And it is a single page template , every page redirection are work without page reloading . Thanks
https://www.ads-software.com/plugins/angularjs-for-wp/
Heya. Can I use ng-new-post to submit a new cpt post with custom fields??
]]>Hey, I’ve followed the documentation and installed the plugin (and the json api)
I see the option to switch angular on in the posts and pages WYSIWIG editors but when I place the actual <ng-posts>
into my template source nothing happens.
I can see angular being loaded in the head with dev tools. What can I do next? Angular is available at the console log also. Just the tags seems to do nothing
]]>Following several tutorials, I was creating an AngularJS theme and I ran into your plugin few days ago.
I was aware that Drupal offers AngularJS as a module and now this plugin. haha
This is very confusing to me and I need an advice which approach is more appropriate. Should AngularJS be offered as a plugin or should a theme incorporate AngularJS?
Next question. Should I wait until AngularJS2 ships before investing more time on AngularJS?
I am quite certain $scope won’t the only thing that will not be compatible with AngularJS2.
Any advice would be greatly appreciated.
]]>Hi! Thanks for creating this plugin. I’m excited to try it out.
But I can’t get it to work yet…
I enabled AngularJS in the meta box. I have [ng-posts] as the page content. I’m using twentyfourteen. My page simply displays “Undefined”.
When I use chrome’s Inspect Element tool I notice that <ng-include>’s src attribute value is wrapped in both single and double quotes like so:
"'https://myblog.com/wp-content/ etc etc /post-content.html'"
In chrome’s element inspector, if I ask to open that page in a new tab (just to see if it is locatable) it opens up:
https://myblog.com/'https://myblog.com/ etc etc /post-content.html'
Thanks for any help!
Bobby
]]>Hi Roy, I just updated to the new version 2.0.1. After that now it keeps showing up this notice on the WordPress dashboard
JSON REST API must be installed and activated for the AngularJS for WP plugin to work properly
However I have already installed and active JSON REST API and all keeps working just fine.
Maybe is something missing on this new update that doesn’t detect properly the dependant plugin JSON REST API?
]]>installed update and front page of website went white – deactivated plugin and everything returned to normal
]]>Chat Rooms powered by Firebase plugin requires JSON REST API (WP-API) plugin and this AngularJS plugin.
After installation, I cannot login to website normally. After de-activating AngularJS plugin, I can login to website normally.
]]>When I install the plugin and activate, all my wordpress posts disappear on home page. When I de-activate plugin, all the posts re-appear.
]]>Hello
Some of the client side pages loaded with AngularJS using this plugin work just fine but on other pages the entire content is replaced with the following:
">
For example, the Sample Page that comes with WordPress installation works fine and so does the Shop page from WooCommerce but the My Account, Cart and Checkout pages from WooCommerce don’t work.
How could I resolve this issue?
]]>Hi Roy,
Thanks for this great plugin, very helpful in real-world learning AngularJS.
My test site won’t yet display actual post content. Although the post titles display correctly, {{post.content}} produces html (eg, <ng-post-content id="964"></ng-post-content>
).
Not sure what I’m missing here. Any advice highly appreciated.
]]>Hi Roy,
Excellent plugin! We are just starting to play around with it, and have a few questions.
1. When using this: <ng-new-post post-type=”task” ></ng-new-post>
– the taxonomies from the ‘task’ cpt show up correctly, but the post isn’t saved to the ‘task’ cpt. It’s saved to the ‘post’ cpt.
2. We are following along in your blog “Lets Build a WordPress App Together” – and would like to start extending the plugin for routes & custom meta. How would you suggest we go about this in a way that doesn’t interfere with future updates you release?
THANK YOU
]]>It appears as though the template override for new-post.html is not working. When I try using my own templates, the only thing that gets included is the post-content.html template.
However, there seems to be an easy fix. In plugin.php line 56 is:
$template_directory['new_post'] = get_bloginfo('template_directory').'/angularjs-templates/post-content.html';
and if I change it to:
$template_directory['post_content'] = get_bloginfo('template_directory').'/angularjs-templates/post-content.html';
it seems to work just fine. Looks like you’re assigning $template_directory[‘new_post’] twice. Not sure why this makes a difference for template overrides and not for the built-in templates, but I haven’t gone into the code enough to see why.
]]>Hey, thanks for this plugin, it’s going to save me a lot of time adapting wordpress for angularjs.
I had a problem, though. The post is being created, but the category is not being assigned to it. I modified your code somewhat to reflect my category IDs:
$scope.data = {
title: form.find('input[name="postTitle"]').val(),
content_raw: form.find('textarea[name="postContent"]').val(),
status: 'publish',
post_category: [ 5 ]
}
And here is the resulting JSON that is sent:
Array
(
[title] => Not again
[content_raw] => Yes
[status] => publish
[post_category] => Array
(
[0] => 5
)
)
]]>
Hi there, I can only get the content of a post to display if I am logged into my wp site.
I noticed that the context is hardcoded to ‘edit’ in angular-posts-directive.js and if I change it to ‘view’ then only the title of the post is displayed.
I am very new to angular, and the rest API so I may be missing something simple
Any help is appreciated!
]]>Great plugin!
I was wondering, Is it possible to combine a custom Angular website with WordPress?
I would like to rapidly build an app with AngularJS, and concentrate on just the custom core functions, while things like the blogs, contact forms, payment pages, and user registration can all be handled by WordPress.
The AngularJS app will make API calls to other datasources including other DBs.
What is the best way to combine the two? Have the Angular pages run inside of WordPress? Or have WordPress be a subdomain of the Angular site?
I think WP is an under utilized tool for rapid “complete” custom website/app development.
Thank you!
]]>I have installed the plugin along with JSON REST API plugin. The site seems to work faster to me but how do I make sure it really is?
]]>