Get started with ng-fittext CDN
MIT licensed
AngularJSs ng-fittext library adjusts text font size to fit containers.
Tags:- angular
- javascript
- typography
Stable version
Copied!
How to start using ng-fittext CDN
import { Component } from '@angular/core';
@Component({
selector: 'app-fit-text',
template: `
<div class="container">
<h1 class="title" [ngFitText]="'3em'">Hello World</h1>
</div>
`,
styles: [`
.container {
text-align: center;
}
.title {
margin: 0;
}
`]
})
export class FitTextComponent {
// No need to implement any logic here
}
Copied!
Copied!
Copied!