0.5.1 • Published 7 years ago

ng2-bootstrap-grid v0.5.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

ng2-bootstrap-grid

Installation

To install this library, run:

$ npm install ng2-bootstrap-grid --save

Consuming your library

Once you have published your library to npm, you can import your library in any Angular application by running:

$ npm install ng2-bootstrap-grid

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { BootstrapGridModule } from 'ng2-bootstrap-grid';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify your library as an import
    BootstrapGridModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

First, wrap your app.component.html content with bootstrap-grid

<bootstrap-grid>
  <!--Rest of application here-->
</bootstrap-grid>

Once your library is imported, you can use its components, directives and pipes in your Angular application:

<!-- You can now use your library component in app.component.html -->
<container>
  <row>
    <column sm="6" md="4" lg="3">
      Column 1
    </column>
    <column sm="6" md="4" lg="3">
      Column 2
    </column>
    <column sm="6" md="4" lg="3">
      Column 3
    </column>
    <column sm="6" md="4" lg="3">
      Column 4
    </column>
  </row>
  <row>
    <column sm="6" smPush="3" smPull="3">
      Centered Column
    </column>
  </row>
</container>

Development

To generate all *.js, *.js.map and *.d.ts files:

$ npm run tsc

To lint all *.ts files:

$ npm run lint

License

MIT © Levi Fuller

0.5.1

7 years ago

0.5.0

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago