mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-864] codelyzer form component (#2076)
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
import { Component, EventEmitter, Input, OnChanges, Output } from '@angular/core';
|
||||
import { RatingService } from './../services/rating.service';
|
||||
|
||||
@Component({
|
||||
@@ -24,7 +24,7 @@ import { RatingService } from './../services/rating.service';
|
||||
templateUrl: './like.component.html',
|
||||
providers: [RatingService]
|
||||
})
|
||||
export class LikeComponent {
|
||||
export class LikeComponent implements OnChanges {
|
||||
|
||||
@Input()
|
||||
nodeId: string;
|
||||
@@ -81,7 +81,7 @@ export class LikeComponent {
|
||||
}
|
||||
|
||||
clean() {
|
||||
this.isLike = false;
|
||||
this.likesCounter = 0;
|
||||
this.isLike = false;
|
||||
this.likesCounter = 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user