diff --git a/demo/package.json b/demo/package.json index 371929a2..636faa55 100644 --- a/demo/package.json +++ b/demo/package.json @@ -8,7 +8,8 @@ "lint": "tslint \"src/**/*.ts\"", "test": "ng test", "pree2e": "webdriver-manager update", - "e2e": "protractor" + "e2e": "protractor", + "postinstall": "npm link ng2-sharebuttons" }, "private": true, "dependencies": { @@ -20,9 +21,10 @@ "@angular/platform-browser": "^2.3.1", "@angular/platform-browser-dynamic": "^2.3.1", "@angular/router": "^3.3.1", - "core-js": "^2.4.1", "animate.css": "^3.5.2", + "core-js": "^2.4.1", "font-awesome": "*", + "ng2-sharebuttons": "^1.1.5", "normalize.css": "*", "prismjs": "^1.5.1", "rxjs": "^5.0.1", @@ -47,4 +49,4 @@ "tslint": "^4.0.2", "typescript": "~2.0.3" } -} +} \ No newline at end of file diff --git a/demo/src/app/header/header.component.ts b/demo/src/app/header/header.component.ts index 77c54cd8..2e9b1e1b 100644 --- a/demo/src/app/header/header.component.ts +++ b/demo/src/app/header/header.component.ts @@ -7,15 +7,15 @@ import { Component, OnInit } from '@angular/core'; }) export class HeaderComponent implements OnInit { - ngShareButtonLogo = prefixRepo('../../assets/img/logo.svg'); - fbLogo = prefixRepo('../../assets/img/share/facebook.svg'); - twttLogo = prefixRepo('../../assets/img/share/twitter.svg'); - pintLogo = prefixRepo('../../assets/img/share/pinterest.svg'); - stumbleLogo = prefixRepo('../../assets/img/share/stumbleupon.svg'); - googleLogo = prefixRepo('../../assets/img/share/google-plus.svg'); - tumblrLogo = prefixRepo('../../assets/img/share/tumblr.svg'); - redditLogo = prefixRepo('../../assets/img/share/reddit.svg'); - inLogo = prefixRepo('../../assets/img/share/linkedin.svg'); + ngShareButtonLogo = '../../assets/img/logo.svg'; + fbLogo = '../../assets/img/share/facebook.svg'; + twttLogo = '../../assets/img/share/twitter.svg'; + pintLogo = '../../assets/img/share/pinterest.svg'; + stumbleLogo = '../../assets/img/share/stumbleupon.svg'; + googleLogo = '../../assets/img/share/google-plus.svg'; + tumblrLogo = '../../assets/img/share/tumblr.svg'; + redditLogo = '../../assets/img/share/reddit.svg'; + inLogo = '../../assets/img/share/linkedin.svg'; constructor() { } @@ -23,6 +23,3 @@ export class HeaderComponent implements OnInit { } } -var prefixRepo = (path) => { - return 'ng2-sharebuttons' + path; -}; \ No newline at end of file diff --git a/demo/src/index.html b/demo/src/index.html index d635873a..90a43a01 100644 --- a/demo/src/index.html +++ b/demo/src/index.html @@ -4,7 +4,7 @@