GithubHelp home page GithubHelp logo

Comments (8)

TwanoO67 avatar TwanoO67 commented on June 19, 2024 2

Bug confirmed: the "o.toggleBtnSelector" seems to be related to the data-toggle attribute, which is overridden by ng2...
I'm looking for a solution without modifying adminLTE...

from bootstraping-ngx-admin-lte.

magnattic avatar magnattic commented on June 19, 2024

I solved this exact problem a few months ago, might be of help:

You have to call $.AdminLTE.controlSidebar.activate() in ngAfterViewInit of your ControlSidebarComponent.

This is how my component looks:

import { Component, OnInit, AfterViewInit } from '@angular/core';

declare var jQuery: any;

@Component({
  moduleId: module.id,
  selector: 'control-sidebar',
  templateUrl: 'control-sidebar.component.html'
})
export class ControlSidebarComponent implements OnInit, AfterViewInit {

  constructor() { }

  ngOnInit() {

  }

  ngAfterViewInit() {
    if (jQuery.AdminLTE && jQuery.AdminLTE.controlSidebar) {
      jQuery.AdminLTE.controlSidebar.activate();
    }
  }
}

from bootstraping-ngx-admin-lte.

TwanoO67 avatar TwanoO67 commented on June 19, 2024

Nice! :)
Don't hesitate to make a pull request, if you want your name to be quoted on the project ;)

from bootstraping-ngx-admin-lte.

TwanoO67 avatar TwanoO67 commented on June 19, 2024

This is also solved by the new compilation process

from bootstraping-ngx-admin-lte.

llotall avatar llotall commented on June 19, 2024

@magnattic Hello , please can you describe more detail your solution of this bug? I'm a begginer in SPA's on angular.
What is contains templateUrl: 'control-sidebar.component.html' ?

from bootstraping-ngx-admin-lte.

llotall avatar llotall commented on June 19, 2024

@TwanoO67 Hello, please can you say me about what you meaning about compilation process?

from bootstraping-ngx-admin-lte.

TwanoO67 avatar TwanoO67 commented on June 19, 2024

This is a very old bug and the correction is already merged in the repo.
It add noting to do with the templateUrl.
What is your problem @llotall ?

from bootstraping-ngx-admin-lte.

llotall avatar llotall commented on June 19, 2024

@TwanoO67 Do you know how to add custom scrollbar in sidebar component?

from bootstraping-ngx-admin-lte.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.