Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
doesn't display manual array, but doesn't display nothing anymore
  • Loading branch information
clr14003 committed May 2, 2020
1 parent 51475e9 commit 7abf5bf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion final/src/App.vue
Expand Up @@ -38,7 +38,7 @@ export default {
mounted() {
// console.log(this.authenticated);
}
}
};
</script>

<style lang="scss">
Expand Down
10 changes: 5 additions & 5 deletions final/src/components/PlaceholderTweets.vue
@@ -1,6 +1,6 @@
<template>
<div id="postLog">
<ul>
<ul id="postList">
<li v-for="post in posts">{{ post.message }}</li>
</ul>
<!-- all posts below this are copies of the above -->
Expand All @@ -11,9 +11,9 @@
export default {
name: 'PlaceholderTweets',
props: {
msg: String
}
}
};
Expand All @@ -27,9 +27,9 @@
#postLog {
text-align: left;
max-height: 500px;
height: 500px;
width: 150%;
overflow-y: scroll;
/*overflow-y: scroll;*/
}
</style>
Expand Down
14 changes: 7 additions & 7 deletions final/src/main.js
Expand Up @@ -38,12 +38,12 @@ new Vue({
}
}).$mount('#app')

/*var app = new Vue ({
el: '#postLog',
var posts = new Vue ({
el: '#postList',
data: {
posts: [
{ message: "first" },
{ message: "second" },
{ message: "third" }]
}
})*/
{ message: 'first' },
{ message: 'second' },
{ message: 'third' }],
},
});
4 changes: 2 additions & 2 deletions final/src/views/Home.vue
@@ -1,7 +1,7 @@
<template>
<div class="home">

<PlaceholderTweets/>
<PlaceholderTweets msg="still works?"/>

</div>

Expand All @@ -20,5 +20,5 @@ export default {
mounted() {
// console.log(db);
}
}
};
</script>

0 comments on commit 7abf5bf

Please sign in to comment.