@beyerleinf/ngx-cfb

A simple to use component library for Angular.

Usage no npm install needed!

<script type="module">
  import beyerleinfNgxCfb from 'https://cdn.skypack.dev/@beyerleinf/ngx-cfb';
</script>

README

ngx-cfb

A simple to use component library for Angular.

Table of Contents

  1. Links
  2. Installation & basic usage
  3. Full Documentation

Links

Code Documentation Changelog

Installation & basic usage

You can install ngx-cfb via npm:

npm install --save @beyerleinf/ngx-cfb

Import the Module somewhere:

import { ConnectFourBoardModule } from '@beyerleinf/ngx-cfb';

@NgModule({
  ...
  imports: [ConnectFourBoardModule, ...]
  ...
})

Add the component:

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  board = [[1, 0, 2], [0, 0, 0]];
}

<cfb-board [board]="board"></cfb-board>

Full Documentation

You can check out the complete (auto-generated) documentation here