Manol Posted December 3, 2014 Share Posted December 3, 2014 A starting point module to use angularjs in our templates in an easy manner. 3 Link to comment Share on other sites More sharing options...
Macrura Posted December 4, 2014 Share Posted December 4, 2014 wish i had a remote concept of what AngularJS is/does and how it could be used with PW... Link to comment Share on other sites More sharing options...
mr-fan Posted December 4, 2014 Share Posted December 4, 2014 wish i had a remote concept of what AngularJS is/does and how it could be used with PW... https://processwire.com/talk/topic/2187-module-fieldtypepoll/#entry20484 2 Link to comment Share on other sites More sharing options...
Manol Posted December 4, 2014 Author Share Posted December 4, 2014 Hi Macrura. In the example below you´ll get a list of all children of the actual page. <script> app.controller('myCtrl', function ($scope) { $scope.children = []; $scope.children = <?=$page->getChildren()?>; }); </script> <div ng-controller="myCtrl"> <ul> <li ng-repeat="child in children">{{child.title}}</li> </ul> </div> The code is really clean and is not only that but you can make use of thousands of modules already available and a huge community. As mr-fan said you get lots of videos, docs, books. 1 Link to comment Share on other sites More sharing options...
Macrura Posted December 4, 2014 Share Posted December 4, 2014 @Manol, thanks a lot, this helps to see that in context of something familiar. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now