silverbux / laravel-angular-admin

Laravel + Angularjs + Bootstrap + AdminLTE binded by Gulp workflow Admin Dashboard Boilerplate / Starter.
http://silverbux.github.io/laravel-angular-admin/
MIT License
925 stars 414 forks source link

How to activate new modules in it #114

Open donadoniman opened 6 years ago

donadoniman commented 6 years ago

may i know how can i enable select2 or datetimepicker on this project

may i know the steps to add new modules from bower_components

Thanks for your support

carabationut commented 6 years ago

Hi, donadoniman

I added today to the project I am building based on this project the modules ngSanitize, rangy and textAngular successfully. What do you need to do, is to add your modules by the terminal, but be careful for the angular version as ngSanitize got me some trouble at first because the project has the 1.5.x version and the ngSanitize was looking for 1.6.9.

And again, look for the dependencies that each new module needs and install them by bower. After you successfully added the modules to bower, just add them to your components in index.module.js like me:

angular.module('app.components', [ 'ui.router', 'angular-loading-bar', 'restangular', 'ngStorage', 'satellizer', 'ui.bootstrap', 'chart.js', 'mm.acl', 'datatables', 'datatables.bootstrap', 'checklist-model', 'ngSanitize', 'textAngular' ])

Hope this helps. I will come back later for datetimepicker for sure, but not at this moment. If you could and finally solve this, can you share it with us on how did you do it with datetimepicker?