[ADF-864] codelyzer form component (#2076)

This commit is contained in:
Eugenio Romano
2017-07-12 20:53:07 +01:00
parent 6f8e984d75
commit 8cdb276dc4
133 changed files with 1078 additions and 850 deletions

View File

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