Skip to content

Commit

Permalink
v 1.0.3 / update directive selector & readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sollenne committed Jun 5, 2017
1 parent e2d983d commit 6413c71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Import it in your Angular4 project like a module
@Component({
selector: 'hero',
template: `<div #container class="hero">
<h1 [fittext]="true" [activateOnResize]="true" [container]="container">RESIZES THIS TEXT</h1>
<h1 [fittext]="true" [activateOnResize]="true" [container]="container">RESIZE THIS TEXT</h1>
</div>`
})
Expand All @@ -53,8 +53,8 @@ Import it in your Angular4 project like a module
| container | the container to fit | ElementRef
| activateOnResize | enable/disable the auto-scale in case of window resize | true or false (default false)
| compression | compression rate. How fast should the text resize | number (default 1)
| minFontSize | enable/disable the autofit in case of window resize | number (default -infinity)
| MaxFontSize | enable/disable the autofit in case of window resize | number (default bitSize limit)
| minFontSize | minimum font size allowed on element | number (default -infinity)
| MaxFontSize | maximum font size allowed on element | number (default bitSize limit)


### Development
Expand All @@ -67,8 +67,6 @@ fittext.js was pretty useful up until nobody liked jquery anymore. There was an
### Todos

- Write tests
- default max font size
- default min font size

License
----
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng4-fittext",
"version": "1.0.2",
"version": "1.0.3",
"description": "An Angular4.* directive to auto-scale the font-size of an element to fit it's parent element.",
"main": "index.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/ng4fittext.directive.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Directive, ElementRef, Input, AfterViewInit, HostListener} from '@angular/core';

@Directive({
selector: '[FitText]'
selector: '[fittext]'
})
export class Ng4FittextDirective implements AfterViewInit {

Expand Down

0 comments on commit 6413c71

Please sign in to comment.