Created
July 29, 2016 17:39
-
-
Save ChrisFlannagan/d8ca1975066d27f72fcf310b198be3c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
posts.forEach(function(post) { | |
console.log(post['title']); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.post-title { | |
padding: 10; | |
color: #213778; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var postTitles = new ObservableArray([].map(function(postTitle) { | |
return new Observable({ | |
postName: postTitle | |
}); | |
})); | |
page = args.object; | |
page.bindingContext = { | |
postList: postTitles | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ObservableArray = require("data/observable-array").ObservableArray; | |
var Observable = require("data/observable").Observable; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment