Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including ng-horo with all npm packages installed. Try it out:

require("@angular/core/package.json"); // @angular/core is a peer dependency. var ngHoro = require("ng-horo")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ng-horo v0.3.2

ng-horo

Simple but dynamic watch to use as an angular x module

Installation

To install this library, run:

$ yarn install ng-horo --save

Consuming your library

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

$ yarn install ng-horo

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 { HoroModule } from 'ng-horo';

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

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

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 -->
<h1>
  {{title}}
</h1>
<horoComponent></horoComponent>

Development

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

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © André Kilchenmann

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free