modular-admin-html icon indicating copy to clipboard operation
modular-admin-html copied to clipboard

Required JS?

Open Trapulo opened this issue 8 years ago • 1 comments

Hi, I'm trying to integrate the code in my application (an Angular 4 builded with Webpack and ASP.NET Core as server) and I cannot understand witch is the JS code to integrate to run the modular admin feature (eg. the sidebar menu). Not the vendors, as Bootstrap, nor the code used to run the demo. Just the JS that "runs the template"...

thanks

Trapulo avatar Jun 28 '17 14:06 Trapulo

Hi @Trapulo For sidebar you can find the needed code here: https://github.com/modularcode/modular-admin-html/blob/master/src/app/_common/sidebar/sidebar.js

In case of using with angular, you'll either need to wrap this into a component (start listening inside ngOnInit and do .off inside destroy) or do something like this:

$document.on('click', '#sidebar-collapse-btn', function(event){

ex37 avatar Jun 29 '17 00:06 ex37