{"size": 401, "ext": "js", "max_stars_repo_path": "js/friends/friendList.js", "max_stars_repo_name": "garrettwong/FirebaseDemos", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/friends/friendList.js", "max_issues_repo_name": "garrettwong/FirebaseDemos", "max_issues_repo_issues_event_min_datetime": "2018-09-09T15:28:49.000Z", "max_issues_repo_issues_event_max_datetime": "2018-09-09T15:28:49.000Z", "max_forks_repo_path": "js/friends/friendList.js", "max_forks_repo_name": "garrettwong/FirebaseDemos", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 21.1052631579, "max_line_length": 47, "alphanum_fraction": 0.5436408978}
angular.module('app').component('friendList', {
    templateUrl: '/js/friends/friendList.html',

    bindings: {
        friends: '='
    },

    controller: function () {
        console.log(this.friends);

        this.createNewFriend = function () {
            console.log(this.newFriendName);

            this.friends.$add(this.friend);

            this.newFriendName = '';
        };
    }
});