ng2-awesome-disqus
Advanced tools
Comparing version 1.0.6 to 1.1.0
#Changelog | ||
##1.1.0 | ||
- (fix) Passing identifiers, closes [#3](https://github.com/MurhafSousli/ng2-disqus/issues/3) | ||
- (feat) @Output() `comment` callback (output) | ||
- **[removeOnDestroy]** input is deprecated, it will remove disqus script on destroy by default. | ||
##1.0.4 | ||
@@ -4,0 +11,0 @@ - Improve component code |
@@ -1,4 +0,2 @@ | ||
import { DisqusComponent } from './component/disqus.component'; | ||
export declare class DisqusModule { | ||
} | ||
export { DisqusComponent }; |
import { NgModule } from '@angular/core'; | ||
import { DisqusComponent } from './component/disqus.component'; | ||
import { DisqusService } from './service/disqus.service'; | ||
import { WindowService } from './window/window.service'; | ||
import { DisqusComponent } from './disqus.component'; | ||
import { DisqusService } from './disqus.service'; | ||
// import { JsonpModule } from '@angular/http'; | ||
export var DisqusModule = (function () { | ||
@@ -11,3 +11,4 @@ function DisqusModule() { | ||
declarations: [DisqusComponent], | ||
providers: [WindowService, DisqusService], | ||
providers: [DisqusService], | ||
// imports: [JsonpModule],/ | ||
exports: [DisqusComponent] | ||
@@ -20,3 +21,2 @@ },] }, | ||
}()); | ||
export { DisqusComponent }; | ||
//# sourceMappingURL=disqus.module.js.map |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":1,"metadata":{"DisqusModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./component/disqus.component","name":"DisqusComponent"}],"providers":[{"__symbolic":"reference","module":"./window/window.service","name":"WindowService"},{"__symbolic":"reference","module":"./service/disqus.service","name":"DisqusService"}],"exports":[{"__symbolic":"reference","module":"./component/disqus.component","name":"DisqusComponent"}]}]}]}}} | ||
{"__symbolic":"module","version":1,"metadata":{"DisqusModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./disqus.component","name":"DisqusComponent"}],"providers":[{"__symbolic":"reference","module":"./disqus.service","name":"DisqusService"}],"exports":[{"__symbolic":"reference","module":"./disqus.component","name":"DisqusComponent"}]}]}]}}} |
{ | ||
"name": "ng2-awesome-disqus", | ||
"version": "1.0.6", | ||
"version": "1.1.0", | ||
"description": "Angular Disqus Module", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -31,3 +31,3 @@ [![npm](https://img.shields.io/npm/v/ng2-awesome-disqus.svg?maxAge=2592000?style=plastic)](https://github.com/MurhafSousli/ng2-disqus) [![Build Status](https://travis-ci.org/MurhafSousli/ng2-disqus.svg?branch=master)](https://travis-ci.org/MurhafSousli/ng2-disqus) [![npm](https://img.shields.io/npm/dt/ng2-awesome-disqus.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/ng2-awesome-disqus) | ||
``` | ||
<disqus [shortname]="disqusShortname" [identifier]="pageIdentifier" ></disqus> | ||
<disqus [shortname]="shortname" [identifier]="pageId" ></disqus> | ||
``` | ||
@@ -37,14 +37,14 @@ | ||
See Disqus official documentation ([JavaScript configuration variables](https://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables)) to use the other inputs. | ||
See Disqus official documentation ([JavaScript configuration variables](https://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables)) before using these inputs. | ||
``` | ||
<disqus [shortname]="disqusShortname" [identifier]="pageIdentifier" | ||
<disqus [shortname]="shortname" [identifier]="pageId" | ||
[url]="customUrl" [categoryId]="catId" [lang]="'en'" | ||
[removeOnDestroy]="true" | ||
(comment)="onComment($event)" | ||
></disqus> | ||
``` | ||
by default the component will reset *Disqus* configurations after its view initializes again (but won't remove the script), to remove *Disqus* script completely on component destroy, | ||
set `[removeOnDestroy]="true"` (you won't need this option most often). | ||
Use the output `(comment)` to get user's comment response. | ||
## Issues | ||
@@ -51,0 +51,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33220
284
20
1