first commit
way too late.
This commit is contained in:
commit
d4f7dc57fc
53 files changed
+3518
No files matched your search
@@ -0,0 +1,28 @@
|
||||
define ["app", "angularAMD"], (app, angularAMD) ->
|
||||
app.controller "ApispecCtrl", ($scope) ->
|
||||
$scope.methods =
|
||||
get: "GET"
|
||||
post: "POST"
|
||||
|
||||
angularAMD.directive "wabMethod", () ->
|
||||
directive =
|
||||
restrict: 'E',
|
||||
scope:
|
||||
method: '@'
|
||||
link: (scope, element) ->
|
||||
scope.methods =
|
||||
get: "GET"
|
||||
put: "PUT"
|
||||
delete: "DELETE"
|
||||
post: "POST"
|
||||
|
||||
template: '<code style="width:5em; display: block; text-align: center;">{{ methods[method] }}</code>'
|
||||
return directive
|
||||
|
||||
angularAMD.directive "wabApi", () ->
|
||||
directive =
|
||||
restrict: 'E',
|
||||
scope:
|
||||
endpoint: '@'
|
||||
template: '<a>/api{{ endpoint }}</a>'
|
||||
return directive
|
||||
Reference in new issue
Block a user