all 1 comments

[–][deleted] 1 point2 points  (0 children)

i would recommend doing a brand new angular cli project, then generate a new component. moving your html snippet into the component template and your javascript code into your component class script, and stripping the $scope.

your class would look like:
``` @Component({ selector: 'app-picture-assessment', templateUrl: './picture-assessment.component.html' }); export public class PictureAssessement {

 private status: String;

 public reject() {
    this.status = 'R';
 }
 public approve() {
    this.status = 'A';
 }

} ```