1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-23 14:41:44 +00:00

rebuild app structure

This commit is contained in:
Rokt33r
2015-06-08 03:56:28 +09:00
parent 010ee6a711
commit 67d8183582
61 changed files with 705 additions and 1266 deletions

View File

@@ -1,12 +1,13 @@
angular.module('codexen.directives')
.directive('btnEditSnippet', function (editSnippetModal, $rootScope) {
/* global angular */
angular.module('codexen')
.directive('btnEditSnippet', function (Modal, $rootScope) {
return {
scope:{
scope: {
snippet: '=btnEditSnippet'
},
link: function (scope, el) {
el.on('click', function () {
editSnippetModal.open(scope.snippet)
Modal.editSnippet(scope.snippet)
.result.then(function (snippet) {
$rootScope.$broadcast('snippetUpdated', snippet)
}, function () {