Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vue.component('feedback-table', {
- template: '#grid-template',
- data: function () {
- return {
- test:[],
- teste:'a'
- }
- },
- created:function(){
- $.getJSON('/getFeedbackQuestionsAndChances',function(data){
- this.test = data.chancesOfApproval;
- }.bind(this));
- },
- });
- new Vue({
- el: '#feedback-wrapper',
- });
- <div id="feedback-wrapper">
- <feedback-table></feedback-table>
- </div>
- <template id="grid-template">
- <div>
- <h1>teste</h1>
- <h1>@{{ teste }}</h1>
- <div class="table table-bordered table-responsive table-striped">
- <div v-for="entry in test">
- @{{ entry }}
- </div>
- </div>
- </div>
- </template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement