tips.js 507 Bytes
import './tipEditorComponent';

angular
    .module('footyroom')

    .controller('TipController', [
        '$uibModal',
        'dateFormat',
        function ($uibModal, dateFormat) {
            const vm = this;

            dateFormat($('.btip'));

            vm.editTip = editTip;

            function editTip(id) {
                $uibModal.open({
                    template: `<tip-editor id="${id || ''}" dismiss="$dismiss()"></tip-editor>`,
                });
            }
        },
    ]);