Coder Social home page Coder Social logo

Comments (3)

jadjoubran avatar jadjoubran commented on July 30, 2024

Hi @abhibly
I opened the console and I saw an error with the syntax

You need to wrap your is-active with quotes 'is-active' for it work:

Here's the updated line:

<a href="#starks-panel" id="first" class="mdl-tabs__tab" [ngClass]="{ 'is-active': isOn}">Starks</a>

Let me know if this fixes your issue

from angular-material-design-lite.

abhibly avatar abhibly commented on July 30, 2024

@jadjoubran thanks... i updated the code which you gave and it is working...Yesterday i came across with another problem i.e i am trying to implement tab in a tab...Earlier i used to load the tab using jquery which used to work properly but in angular 2 i just placed a tab inside a tab but it is not working as expected...I have created a plunker demo for it and here it is->http://plnkr.co/edit/b0ZAI78iEETkGyNIlzSO?p=preview I am familiar using Mdl with jquery but using Mdl with Angular2 i am experiencing new problems and learning new things.How can it be rectified brother...Please help

from angular-material-design-lite.

jadjoubran avatar jadjoubran commented on July 30, 2024

Hi @abhibly
You need to manually upgrade the component (second tab) when you want to show it
Check mdl's official docs on upgrading components

Feel free to reply back if it worked or if you're still having issues

from angular-material-design-lite.

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.