From aa71110e618f04a5098c9d649616b3ad32db9233 Mon Sep 17 00:00:00 2001 From: Lorenzo Iovino Date: Tue, 14 Mar 2017 16:29:48 +0100 Subject: [PATCH] fixed readme --- README.md | 4 ++-- index.ts | 1 + package.json | 2 +- tsconfig.json | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 index.ts diff --git a/README.md b/README.md index 9df04c6..685a729 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Import it in your Angular2 project like a directive @Component({ selector: 'label', template: `
-
Bla bla bla...
+
Bla bla bla...
` }) @@ -46,7 +46,7 @@ Import it in your Angular2 project like a directive | Parameter | Description | Values | | --- | --- | --- | - | fittext | is the selector of the directive | true/false (if is setted is true by default) + | fittext | is the selector of the directive | true/false | container | the container to fit | ElementRef | onResize | enable/disable the autofit in case of window resize | true or false (default false) diff --git a/index.ts b/index.ts new file mode 100644 index 0000000..962feed --- /dev/null +++ b/index.ts @@ -0,0 +1 @@ +export {FittextDirective} from './src/fittext.directive'; \ No newline at end of file diff --git a/package.json b/package.json index f3192fe..a6191e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ng2-fittext", - "version": "1.0.1", + "version": "1.0.2", "description": "An Angular2 directive for autoscale the font size of an element to fit an upper level container.", "main": "index.js", "scripts": { diff --git a/tsconfig.json b/tsconfig.json index cb6f1d8..bf91244 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,7 @@ }, "files": [ "ng2-fittext.ts", - "ng2-fittext.d.ts" + "ng2-fittext.d.ts", + "index.ts" ] } \ No newline at end of file