An Angular UI Component library for corner ribbons.
npm install --save ngx-ribbon
Import the library into your app module:
import { NgxRibbonModule } from 'ngx-ribbon';
@NgModule({
imports: [
// ... your other module imports
NgxRibbonModule,
],
})
<ngx-ribbon label="hello world!" [scale]="0.5"></ngx-ribbon>
- Ribbon floats when using browser's zoom tool.
- Ribbon labels' font-size are not dynamic.
- Ribbon labels are upside down for
position=bottom-*
.
Run ng serve
and npm run watch
on separate terminals.
Run ng test
to execute the unit tests via Karma.
Please see this StackOverflow post. Similar to the answers, you can add your permanent environment variable on .bashrc
or .zshrc
. For example:
export CHROME_BIN="/mnt/c/Program Files/Google/Chrome/Application/chrome.exe"