1.0.0 • Published 7 years ago

@adenix/ng-console v1.0.0

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

ng-console

Installation

To install this library, run:

$ npm install @adenix/ng-console --save

and then from your Angular AppModule:

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

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

// Import AxConsoleModule
import { AxConsoleModule } from '@adenix/ng-console';

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

    // Specify AxConsoleModule as an import
    AxConsoleModule

  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Usage

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

<!-- You can now the AxConsole components in app.component.html -->
<ax-console axShadow>
    <ax-console-command *ngFor="let command of commands">
      <ax-console-statement>{{command.body}}</ax-console-statement>
      <!-- [responses] requires an array of Response objects (see below) -->
      <ax-console-responses [responses]="command.responses"></ax-console-responses>
    </ax-console-command>
  </ax-console>

Response Object

The response object that is required by axConsoleCommand looks as follows:

[
  {
    "body": string,
    "href": string (OPTIONAL)
  },
  ...
]

License

MIT © Austin Nicholas

1.0.0

7 years ago

0.1.10-pre

7 years ago

0.1.9-pre

7 years ago

0.1.8-pre

7 years ago

0.1.7-pre

7 years ago

0.1.6-pre

7 years ago

0.1.5-pre

7 years ago

0.1.4-pre

7 years ago

0.1.3-pre

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago