General developer forum

HTML templates(angular frontend) and moodle database

Picture of Mark Johnson
Re: HTML templates(angular frontend) and moodle database
Core developersParticularly helpful MoodlersPlugin developers
If you want to interact with Moodle's data and APIs via an angular front-end, then you will need to use web services.  This is exactly how the Moodle app works.

Creating a web service client shows you an example HTTP request where you would use your token and specify a web service function to call.

Bear in mind that Moodle doesn't use angular itself, so you'll essentially be re-implementing the whole UI (or at least those parts your use case requires), which is a very significant task.  You may find it preferable to integrate your website with the existing Moodle web interface, using single sign-on and common theme elements to make the transition between as seamless as possible.  This way your users can benefit from the work the community has already put in to the UI for you.
Average of ratings: -