Skip to content

Instantly share code, notes, and snippets.

Created Feb 24, 2017
What would you like to do?
Aurelia Gist
<require from="bootstrap/css/bootstrap.css"></require>
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="#">
<i class="fa fa-user"></i>
Open API Designer
<div class="container">
<div class="row">
<div class="col-md-6">
Design view
Form fields placeholder
<div class="form-group">
<label for="name">
API Name
<input type="text" class="form-control" id="name" placeholder="Email" value.bind="">
<div class="form-group">
<label for="name">
API Version
<input type="text" class="form-control" id="name" placeholder="Email" value.bind="swagger.version">
<div class="col-md-6">
<h2>JSON Preview</h2>
import {computedFrom} from 'aurelia-framework';
export class App {
constructor() {
this.swagger = {
name: 'Swagger doc',
version: 1
get swaggerString() {
const swaggerStringified = JSON.stringify(this.swagger);
return swaggerStringified;
<!doctype html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<body aurelia-app>
<script src=""></script>
<script src=""></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment