Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

68 lines (62 sloc) 2.341 kb
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="//current.bootstrapcdn.com/bootstrap-v204/css/bootstrap-combined.min.css">
<script src="node_modules/montage/montage.js"></script>
<link rel="stylesheet" href="style.css" />
<script type="text/montage-serialization">{
"owner": {
"prototype": "breaking-bad-credits",
"properties": {
"generatedNamesController": {"@": "generatedNamesController"}
},
"bindings": {
"name": {"<->": "@nameField.value"}
}
},
"nameField": {
"prototype": "montage/ui/native/input-text.reel",
"properties": {
"element": {"#": "name"}
}
},
"generatedNamesController": {
"prototype": "montage/ui/controller/array-controller",
"bindings": {
"content": {"<->": "@owner.generatedNames"}
}
},
"generatedNames": {
"prototype": "montage/ui/repetition.reel",
"properties": {
"element": {"#": "generatedNames"},
"contentController": {"@": "generatedNamesController"}
}
},
"generatedName": {
"prototype": "montage/ui/dynamic-element.reel",
"properties": {
"element": {"#": "generatedName"},
"allowedTagNames": ["strong", "span"],
"class": "generatedName"
},
"bindings": {
"innerHTML": {"<-": "@generatedNames.objectAtCurrentIteration"}
}
}
}</script>
</head>
<body>
<div class="container">
<div class="row">
<div class="span12">
<p>This will generate credit names like the ones seen on Breaking Bad</p>
<input type="text" data-montage-id="name" placeholder="Enter name" />
<ul data-montage-id="generatedNames" class="generatedNames">
<li data-montage-id="generatedName" class="generatedName"></li>
</ul>
</div>
</div>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.