{"size": 727, "ext": "js", "max_stars_repo_path": "demos/delayed-init/script.js", "max_stars_repo_name": "betsol/angular-input-modified", "max_stars_repo_stars_event_min_datetime": "2015-01-07T12:35:08.000Z", "max_stars_repo_stars_event_max_datetime": "2018-10-26T08:36:30.000Z", "max_issues_repo_path": "demos/delayed-init/script.js", "max_issues_repo_name": "vincidezc/angular-input-modified", "max_issues_repo_issues_event_min_datetime": "2015-01-03T01:02:10.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-24T07:03:20.000Z", "max_forks_repo_path": "demos/delayed-init/script.js", "max_forks_repo_name": "vincidezc/angular-input-modified", "max_forks_repo_forks_event_min_datetime": "2015-01-02T23:25:41.000Z", "max_forks_repo_forks_event_max_datetime": "2021-10-19T05:54:35.000Z"}
{"max_stars_count": 99, "max_issues_count": 54, "max_forks_count": 41, "avg_line_length": 22.0303030303, "max_line_length": 66, "alphanum_fraction": 0.5144429161}
(function (document, angular) {

  'use strict';

  angular.module('DemoApp', ['ngInputModified'])
    .controller('DefaultController', function ($scope, $timeout) {

      $scope.loading = false;
      $scope.loadFormData = loadFormData;

      $scope.user = {
        fullName: '',
        email: ''
      };

      function loadFormData () {
        $scope.loading = true;
        $timeout(function dataLoaded() {
          $scope.loading = false;
          $scope.user = {
            fullName: 'John Doe'
          };
          // Calling set-pristine after digest cycle.
          $timeout(function () {
            $scope.myForm.$setPristine();
          });
        }, 1500);
      }

    })
  ;

})(document, angular);