Search code examples
javascriptangularjstwitter-bootstrapangular-materialdashboard

Angular material and dashboards


I'm currently building a dashboard application, and I'd like to use angular-material instead of bootstrap.

I'm not asking for code or pre-made solutions here, I just need well-argumented points of view.

I was thinking about using https://github.com/angular-dashboard-framework/angular-dashboard-framework or https://github.com/DataTorrent/malhar-angular-dashboard as a framework for my dashboard, but they are both based on bootstrap as far as I know.

I was thinking about modify them so that I could use angular-material instead of bootstrap, but in the case I fail doing that my question is :

Is it better to build the dashboard from scratch with angular-material, or would it be possible to use angular-material and few bit of bootstrap for the widgets of the dashboard only (which means all menus and tabs would be based angular-material) ?

I'm not affraid of starting from scratch, but I don't want to waste time. As I need something both efficient and good-looking, I thought I'd ask here first and here some pieces of advice before starting. I'm not really confident about mixing bootstrap and angular-material from what I read on the Internet untill now, but maybe for this case it might be ok.


Solution

  • Well, I would like to share my experience on this. The most tricky thing that you gonna face would be on css side. To get your own design by mixing these two, you will have to override the css classes between bootstarp and angular-module.

    Apart from this, if you'll be using only bootstrap on UI then there is a very little possibility of facing any js issue while using bootstarp because it would have it's own js files using jquery files and that might interfere with $digest cycle of angular.

    From my experience, you can easily manage bootstrap with angularJS so you can go ahead with https://github.com/angular-dashboard-framework/angular-dashboard-framework or https://github.com/DataTorrent/malhar-angular-dashboard.

    Let me know if this answer is sufficient or you have more concerns.