This project is a port of Modular Admin to Angular Dart. Modular Admin is a Bootstrap 4 admin theme written with HTML, monolithic CSS, and some JavaScript. This port focuses on converting monolithic CSS to web components with encapsulated styles and reimplementing the JavaScript logic with AngularDart.
To use ng_modular_admin
in your own AngularDart project, do the following:
- Add
ng_modular_admin
as a dependency inpubspec.yaml
(and runpub get
). - Create an SCSS stylesheet in your main web directory, e.g.
web/theme.scss
and put@import "package:ng_modular_admin/src/modular-admin/modular-admin";
at the top of this file. - You can add any customizations you want to the SCSS stylesheet you created in
step 2. The stylesheet will be built automatically when you use
webdev serve
orwebdev build
. - For any component where you want to use Modular Admin, import
package:ng_modular_admin/ng_modular_admin.dart
and addmodularAdminDirectives
to that component's directives. - Look at the Layout demo page to see how to set up the application shell.
You will find more detailed usage information and examples in the demo application.