Hello all, I am new to Umbraco and not familiar with AngularJS. What I want to do is to load and display data from a table reside in Umbraco database. I can make a custom property editor successfully and I can retrieve my data from browser directly at /umbraco/My/MessageApi/GetAll, however I do not know how could I load the result into a view/template.
I tried to follow the way to put code like below into my template but seems angular javascript didn't load.
Thanks so much! The video is helpful. I can get the data from local database. So I don't need to write a controller first right? Now I want to learn further that how could I load data from external source like a WebAPI call which will return JSON? Is it possible to use the AngularJS approach for the doing the same in the video? :)
Loading data into a template/view
Hello all, I am new to Umbraco and not familiar with AngularJS. What I want to do is to load and display data from a table reside in Umbraco database. I can make a custom property editor successfully and I can retrieve my data from browser directly at /umbraco/My/MessageApi/GetAll, however I do not know how could I load the result into a view/template.
I tried to follow the way to put code like below into my template but seems angular javascript didn't load.
);
Can someone provide me a sample/tutorial for that?
Thanks!
Hi Ferry,
Perhaps this video from Aptitude https://www.aptitude.co.uk/videos/using-custom-tables-data-in-umbraco/ can help you to find out how to get data from from a table reside in Umbraco database and show it in a template / view.
Hope this helps,
/Dennis
Hey Dennis,
Thanks so much! The video is helpful. I can get the data from local database. So I don't need to write a controller first right? Now I want to learn further that how could I load data from external source like a WebAPI call which will return JSON? Is it possible to use the AngularJS approach for the doing the same in the video? :)
is working on a reply...