Handle survey 'complete' event

Source code: Survey setup
Survey.defaultBootstrapCss.navigationButton = "btn btn-primary";
Survey.Survey.cssType = "bootstrap";
var survey = new Survey.Model({questions:[{ type: "comment", name: "suggestions", title:"What do you think about SurveyJS library?" }]});

function surveyOnComplete(s) { 
    alert("Thanks for your answer!");
}


function onAngularComponentInit() {
    Survey.SurveyNG.render("surveyElement", {
        model:survey,
        onComplete: surveyOnComplete
    });
}
var HelloApp =
    ng.core
        .Component({
            selector: 'ng-app',
            template: '<div id="surveyContainer" class="survey-container contentcontainer codecontainer">' +
            '<div id="surveyElement"></div></div>'
        })
        .Class({
            constructor: function() {
            },
            ngOnInit: function() {
                onAngularComponentInit();
            }
        });
document.addEventListener('DOMContentLoaded', function() {
    ng.platformBrowserDynamic.bootstrap(HelloApp);
});