1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-27 16:41:41 +00:00

fix design & using api

This commit is contained in:
Rokt33r
2015-06-15 11:54:02 +09:00
parent 87c9e3e03b
commit 057f43c424
7 changed files with 34 additions and 27 deletions

View File

@@ -7,9 +7,7 @@ angular.module('codexen')
var snippetId = $state.params.id
Snippet.show(snippetId, {
'include': ['Tag']
})
Snippet.show(snippetId)
.success(function (data) {
vm.snippet = data
vm.isLoaded = true

View File

@@ -74,9 +74,7 @@ angular.module('codexen')
function loadSnippets() {
if ($auth.isAuthenticated) {
Snippet.findMine({
'include': ['Tag']
})
Snippet.findMine()
.success(function (data) {
vm.snippets = data
})