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:
@@ -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
|
||||
|
||||
@@ -74,9 +74,7 @@ angular.module('codexen')
|
||||
|
||||
function loadSnippets() {
|
||||
if ($auth.isAuthenticated) {
|
||||
Snippet.findMine({
|
||||
'include': ['Tag']
|
||||
})
|
||||
Snippet.findMine()
|
||||
.success(function (data) {
|
||||
vm.snippets = data
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user