I'm trying to use angular datatables on umbraco, but i don't know how.
I tried to include angular-datatables.js and serversideDTController.js in my project and package manifest, but it didn't work, i had this error when i launch umbraco:
Uncaught TypeError: Cannot read property 'Api' of undefinedinitAngularDataTables @ angular-datatables.js?cdv=886402897:507d
Angular datatables in umbraco
Hi all,
I'm trying to use angular datatables on umbraco, but i don't know how.
I tried to include angular-datatables.js and serversideDTController.js in my project and package manifest, but it didn't work, i had this error when i launch umbraco:
Uncaught TypeError: Cannot read property 'Api' of undefinedinitAngularDataTables @ angular-datatables.js?cdv=886402897:507d
Hi Pau
Can you share the code you're using? And is this something you're adding in the /App_Plugins/ area or where are you placing the things?
/Jan
The code is exactly like this: http://l-lin.github.io/angular-datatables/#/serverSideProcessing
and im adding this in my /App_Plugins area yes.
i downloaded the angular-datatable.js to include it like this:
angular.module('umbraco', ['datatables']) .controller('ServerSideProcessingCtrl', ServerSideProcessingCtrl);
Hi Pau
What does your package.manifest look like?
/Jan
I added some more datatables javascript, and my problem now is the lazyload:
GET http://localhost:65055/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.renderer.js?cdv=886402897 load @ lazyload.js:260
The same message with all the javascripts, and then it says:
Error: Argument 'ServerSideProcessingCtrl' is not a function, got undefined
the manifest looks like this:
{
javascript : [
'~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/jquery.dataTables.min.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.util.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.options.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.instances.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.factory.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.renderer.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.directive.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/serverSideProcessing.js'
]
}
If anyone know the steps that i need to follow to include http://l-lin.github.io/angular-datatables/#/serverSideProcessing in my umbraco project, please help me
In case of anyone having the same problem, or something similar, here is the solution:
http://stackoverflow.com/questions/30187977/use-angular-datatable-in-umbraco-7-custom-section
is working on a reply...