This project is an Angular 2 UI Component Library, and is in very early stages of development!
- Native Angular DOM manipulation
- 100% Angular Universal compatible
- Pure CSS driven animations
- Built to be themeable
BrowserStack provides live, web-based browser testing with access all real mobile and desktop browsers. We use BrowserStack to automate running our tests across all modern browsers to ensure consistency in how our components look and behave on different browsers, ensuring that you have a solid foundation on which to build your Angular application.
$ npm install --save-dev @amd-core/angular-ui
@import '~@amd-core/angular-ui/reset-ui-theme.css';
@import '~@amd-core/angular-ui/base-ui-theme.css';
button-example.module.ts
import { NgModule } from '@angular/core';
import { AmdButtonModule } from '@amd-core/angular-ui';
import { ButtonExampleComponent } from './button-example.component.ts';
@NgModule{(
imports: [AmdButtonModule],
declarations: [ButtonExampleComponent]
)}
export class ButtonExampleComponent { }
button-example.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'amd-button-example',
templateUrl: './button-example.component.html'
})
export class AmdButtonComponent {
public onPrimaryButtonClicked(): void {
console.log('Primary button clicked!');
}
public onSecondaryButtonClicked(): void {
console.log('Secondary button clicked!');
}
}
button-example.component.html
<button amd-button class="button-primary" (click)="onPrimaryButtonClicked()">
Primary Button
</button>
<button amd-button class="button-secondary" (click)="onSecondaryButtonClicked()">
Secondary Button
</button>
Installation instructions are available here.
Note that this project uses a submodule for the demo project to avoid repeating code from the AMD Angular Seed project. To clone this project and include the submodule, run the following:
$ git clone https://github.com/amd-core/amd-angular-ui.git
The dependencies need to be installed for the both the main project and demo sub project.
$ npm install
$ cd demo
$ npm install
$ cd demo
$ npm start