royboy789 / angular-wordpress-theme Goto Github PK
View Code? Open in Web Editor NEWAngularJS Wordpress Theme - used for building single page client side applications using WordPress.
Home Page: http://roysivan.com/angular-wordpress-theme
AngularJS Wordpress Theme - used for building single page client side applications using WordPress.
Home Page: http://roysivan.com/angular-wordpress-theme
I noticed that the theme http://www.roysivan.com/angular-wordpress-theme/#/ is performing a bit slow ... any ideas
Add ES6 support
I'm trying to allow users to comment, but do not get your theme,
I saw the demo and has also desabilitado comments. How do I enable them?
When I create a new view/state (magazine) I'm having to click the menu item twice to show that state. First click shows a blank screen. Any idea why this is happening? Also, thank you for this theme!!
.config(function($stateProvider,$urlRouterProvider,$locationProvider){
$locationProvider.html5Mode({
enabled: true,
requireBase: false
});
$urlRouterProvider.otherwise('/');
$stateProvider
.state('list',{
url:'/',
controller:'listView',
templateUrl:ajaxInfo.template_directory+'list.html'
})
.state('magazine',{
url:'/:magazine',
controller:'magazineView',
templateUrl:ajaxInfo.template_directory+'magazine.html'
})
.state('single',{
url:'/:slug',
controller:'singleView',
templateUrl:ajaxInfo.template_directory+'single.html'
})
})
Got this issue on install.
Fatal error: Call to undefined function rest_get_url_prefix() in wp-content/themes/Angular-Wordpress-Theme-master/inc/angular-enqueue.php on line 23
add gulp-watch for assets/scss
and assets/js
directories
This theme needs to look better, even if it is pretty basic.
Duplicate directive from https://github.com/royboy789/angularjs-for-wordpress
right after install theme throws the error to the console:
angular-resource.js:6 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.3/$injector/modulerr?p0=wpAngularTheme&p1=Eā¦2FAngular%2520Wordpress%2520Theme%2Fbuild%2Fjs%2Fangular.min.js%3A33%3A463)
I'm using xampp in a virtualhost: http://virtualideas.local.
when I put the $locationProvider.html5Mode(true), works fine, but when I refresh the page, the wordpress rewrites the route, sending to a permalink version.
sample:
virtualideas.local/post/another-posts-to-test-angularjs/ - works fine when comes from index.php
but when I refresh the page wp rewrites to virtualideas.local/another-posts-to-test-angularjs/ - and doesn't load nothing.
There is a way to solve this?
thanks in advance.
Hi Roy,
I have been following your SPA with Angular and WordPress and I hit a wall when I get to adding custom data to the API response and displaying it. When I add register_api_field()
to function register_new_field()
I get this error:
Error: [$resource:badcfg]
This error is saying that $resource expects an array, but its getting an object. I do have Posts.query() in the first wpApp.controller(), but when I change Posts.query()
to Posts.get()
that did not change anything and Posts.query()
is what you have in the tutorial.
I have the code I am working with here in my repo:
https://github.com/ldco2016/angular-spa
How do I write this to eliminate this bug?
Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the "Right Side" sidebar. Defaulting to "sidebar-1". Manually set the id to "sidebar-1" to silence this notice and keep existing sidebar content.
In functons.php add id to register_sidebar.
//REGISTER SIDEBAR
register_sidebar(array(
'name' => 'Right Side',
'id' => 'sidebar-1',
'before_widget' => '<section>',
'after_widget' => '</section>',
'before_title' => '<h4>',
'after_title' => '</h4>'
));
hey roy! thanks for doing this. its really cool. i'm gonna start playing with it. was just thinking it might be good to add DS_Store to gitignore.
add functionality for adding a new post
eg. Add header and footer menus for pages
copy functionality from v5 with TinyMCE and on save
Hi Roy,
I activated the theme on my test WP-installation (Pods.io and WP-API/JSON-API).
The WP installation has 5 records ;) (they are shown properly)
But when I visit the site, I get 2185 times this node:
<div ng-switch="" on="nav.type">
<!-- ngSwitchWhen: Custom -->
<!-- ngSwitchWhen: Page -->
<!-- ngSwitchDefault: --><a ng-switch-default="" href="#/view/" class="ng-scope ng-binding"></a>
</div>
</li>
I have not (yet) investigated the code, but will do asap.
andy
rest_get_url_prefix()
Hi Roy!
Noticed you added post_by_slug custom endpoint...thank you.
Is there a way to use filters like ?filter[taxonomy]=eats-categories&filter[term]=eats-video
on that custom endpoint?
Also, when we visit /wp-json/wp/v2/post_by_slug only 1 post comes up...?
if we put /wp-json/wp/v2/post_by_slug/post_slug_here its 404
Save comment using default route/endpoints if possible
Hi,
I was working on this theme.
I was wondering how to add contact form 7 or any slider plugin which I installed on my wordpress .
Please guide us.
Thanks and regards
Vivek
Hi Roy,
Very exited about this combination. Especially to upgrade some of my old wordpress sites with angular. A workflow I am loving more and more.
Currently the theme routes to the id of a post. Do you see any possibility to use the slug of wordpress posts as a routing. So that one can get some prettier URL's and also manually adjust them by adjusting slug.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ššš
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ā¤ļø Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.