1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-20 13:11:44 +00:00

snippet.detail added

This commit is contained in:
Rokt33r
2015-05-28 15:43:03 +09:00
parent bf560c207d
commit 56175ecca5
9 changed files with 89 additions and 7 deletions

View File

@@ -0,0 +1,15 @@
/* global angular */
angular.module('codexen.states')
.controller('SnippetsDetailController', function (Snippet, $state) {
var vm = this
vm.isLoaded = false
var snippetId = $state.params.id
Snippet.show(snippetId)
.success(function (data) {
vm.snippet = data.snippet
vm.isLoaded = true
})
})