Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng2-awesome-disqus

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-awesome-disqus - npm Package Compare versions

Comparing version 1.0.6 to 1.1.0

disqus.component.d.ts

7

CHANGELOG.md
#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

2

disqus.module.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc