{"size": 589, "ext": "js", "max_stars_repo_path": "app/public/js/home.js", "max_stars_repo_name": "vinu5683/FAQ-MEAN-STACK", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/public/js/home.js", "max_issues_repo_name": "vinu5683/FAQ-MEAN-STACK", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/public/js/home.js", "max_forks_repo_name": "vinu5683/FAQ-MEAN-STACK", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.6086956522, "max_line_length": 75, "alphanum_fraction": 0.5500848896}
var myApp = angular.module('myApp', []);



myApp.controller('MainCtrl', function($scope,$rootScope) {
    $scope.faqs = [];
    $scope.displayfaq = function () {
        var dataStr = document.getElementById('faqdata').value;
        var dataArr = [];
        dataArr = JSON.parse(dataStr);
        $scope.faqs = dataArr;
        getConfirmation();
    };

    function getConfirmation() {

        if (document.getElementById('delval').value) {
            alert(document.getElementById('delval').value + "   Deleted");
            return true;
        }
    }
});
