Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

collapse in angular 4

<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <a class="navbar-brand" href="#">Navbar</a>
  <button class="navbar-toggler btn btn-outline-primary" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02"  aria-expanded="false" aria-label="Toggle navigation" (click)="isCollapsed = !isCollapsed" [attr.aria-expanded]="!isCollapsed" aria-controls="navbarTogglerDemo02">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarTogglerDemo02" [ngbCollapse]="isCollapsed">
    <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
      <li class="nav-item active">
        <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Link</a>
      </li>
      <li class="nav-item">
        <a class="nav-link disabled" href="#">Disabled</a>
      </li>
    </ul>
    <form class="form-inline my-2 my-lg-0">
      <input class="form-control mr-sm-2" type="search" placeholder="Search">
      <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
    </form>
  </div>
</nav>
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript multidimensional array 
Javascript :: react router history not defined 
Javascript :: javascript filter array match includes exact 
Javascript :: pass param to url retrofit 
Javascript :: how to get java model attributes from javascript 
Javascript :: angular chart js 
Javascript :: for loop in javascript 
Javascript :: nodejs heap usage 
Javascript :: split string with last character and return array in javascript 
Javascript :: angular retry interceptor 
Javascript :: moment.set 
Javascript :: How to blacklist words with discord.js 
Javascript :: make an arry from a string 
Javascript :: javascript push and concat 
Javascript :: expo font 
Javascript :: create mongodb express server npm 
Javascript :: nuxt js route 
Javascript :: javascript get params from query string json object 
Javascript :: how to push two values in array at once 
Javascript :: discord.js dm all members 
Javascript :: expresiones ternarias javascript 
Javascript :: how to use iframe for youtube video in react 
Javascript :: js key down 
Javascript :: script tags in react 
Javascript :: toisodatestring 
Javascript :: how to replace div element with another in javascript 
Javascript :: anonymous functions javascript 
Javascript :: react native dynamically update flatlist data 
Javascript :: how to get the difference between two arrays in javascript 
Javascript :: escape sequence in js 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =