Spikes Angular Components
We have been working with Angular for a while now and in doing so developed the need to reuse components accross projects.
This repository will hold the source code of some components as well as a demo project to showcase those components.
Dependencies
- Angular (tested with 4.2.6)
- Bootstrap 4 (tested with 4.0.0-alpha.6)
Installation
After installing the dependencies, install spikes-ng2-components
via:
npm install spikes-ng2-components [--save]
Once installed you need to import the module in your AppModule:
import { SpikesNg2ComponentsModule } from 'spikes-ng2-components';
@NgModule({
declarations: [
...
],
imports: [
...,
SpikesNg2ComponentsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Angular-CLI
If you are using the angular-cli to build your app, don't forget to add the styles and scripts to the .angular-cli.json file.
{
...
"apps": [
{
...
"styles": [
"../node_modules/bootstrap/dist/css/bootstrap.css",
"../node_modules/font-awesome/css/font-awesome.css",
"styles.css"
],
"scripts": [
],
...
}
],
...
}
Documentation
Further documentation can be found here