Package Exports
- ng-halfmoon
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ng-halfmoon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
NgHalfmoon
This is the angular-library for halfmoon
Installation
You can install ng-halfmoon
via npm
npm install halfmoon @fortawesome/fontawesome-free ng-halfmoon
Setup
in your angular.json you need to add the following lines
{
"styles": [
"node_modules/halfmoon/css/halfmoon.min.css",
"node_modules/@fortawesome/fontawesome-free/css/fontawesome.min.css"
],
"scripts": [
"node_modules/@fortawesome/fontawesome-free/js/brands.min.js",
"node_modules/@fortawesome/fontawesome-free/js/solid.min.js",
"node_modules/@fortawesome/fontawesome-free/js/fontawesome.min.js",
"node_modules/halfmoon/js/halfmoon.min.js"
]
}
Simply import the NgHalfmoonModule
into your Application
import {NgHalfmoonModule} from "ng-halfmoon";
@NgModule({
imports: [
NgHalfmoonModule
],
})
export class AppModule {
}
<button hmButton appearance="primary">
If this shows the button in primary like on the halfmoon-docs you've made everything right.
Current Components
Currently there is only one-component available for this library but more is already in development. You can use halfmoon as you would use it with normal html.
Basics
- Button