Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required JS? #58

Open
Trapulo opened this issue Jun 28, 2017 · 1 comment
Open

Required JS? #58

Trapulo opened this issue Jun 28, 2017 · 1 comment
Labels

Comments

@Trapulo
Copy link

Trapulo commented Jun 28, 2017

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

@ex37
Copy link
Collaborator

ex37 commented Jun 29, 2017

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){

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants