How can i use the render function in template.html file at componentUrl


#1
<script>
return {
    data: function () {
        return {
            page_demo_data: 'page demo data',
            lists: [
                'a','a','a','a','a','a',
            ]
        }
    },
    methods: {
        page_methods: function () {
            console.log(this.page_demo_data);
        },
    },
    on: {
        pageMounted: function (e, page) {
        },
        pageInit: function (e, page) {
            console.log(this.$options);
            this.$options.render(this.$options.template); **<<<<<<<<<<<<< here question**
        },
        pageBeforeIn: function (e, page) {
        },
        pageAfterIn: function (e, page) {
        },
        pageBeforeOut: function (e, page) {
        },
        pageAfterOut: function (e, page) {
        },
        pageBeforeRemove: function (e, page) {
        },
    },

}

#2

There is no such API


#3

thank you for your reply.

but, i mean the render function, only work before luanch and excute once?


#4

Yes, right, it works only once


#5

okay, thank you sir, again.

if i want query/fetch some data from ajax, refresh or render html content, how can i do that?

this time, i use template7 compiled for this case.