import { Component } from "@angular/core" ; import json from "../../assets/survey.json" ; @ Component ( { selector : "survey-page" , templateUrl : "./survey.page.html" , } ) export class SurveyPage { title = "SurveyJS+Angular Demo Application" ; json ; constructor ( ) { this . json = json ; } sendData ( result ) { console . log ( result ) ; } }