0.3.6 • Published 8 years ago

angular-window-component v0.3.6

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

Angular Window Component

Build Status npm version dependencies Status devDependencies Status

Angular Window provides a basic window component for your application. I know it's not used in web projects, but if you ever come to need this, it's here.

Documentation

Live demo

Installation

To install this library, run:

$ npm install angular-window-component --save

Using window component

Once you have installed it, you can import it in any Angular application by running:

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

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

// Import the library
import { WcWindowModule } from 'angular-window-component';

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

    // Specify it as an import
    WcWindowModule.forRoot()
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

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

<!-- You can now use window component in app.component.html -->
<wc-window>
  <wc-window-title>Window Title</wc-window-title>
  <wc-window-content>
    <!-- You can put anything you want here -->
    <h1>
      {{title}}
    </h1>
  </wc-window-content>
  <wc-window-footer>Window Footer</wc-window-footer>
</wc-window>

Development

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

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Emerson Jair

0.3.6

8 years ago

0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2-alpha

8 years ago

0.0.1-alpha

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago