Skip to content

templates as a function #4046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 30 commits into from
Closed

templates as a function #4046

wants to merge 30 commits into from

Conversation

eco747
Copy link

@eco747 eco747 commented Oct 27, 2016

It should be useful to be able to specify template as a function that return a template string.

Vue.extend({
    template: function( ) { 
        return '<div>'+ this.my_func() + </div>';
    }
});

fnlctrl and others added 30 commits October 12, 2016 13:22
…ISSUE_TEMPLATE.md (#3921)

* Update CONTRIBUTING.md's jdfiddle template

* Update ISSUE_TEMPLATE.md
* if select binding not changed, then needRest should be set to false, and no change event should be emitted

* update code style
* update PR guide for a better release log

* detail on pr title. and fix typo
…ed vue for better prod coverage (#3943)

* fix root v-else not rendering in production and switched examples to minified vue for better prod coverage

* add dev build comment to examples

* convert tabs to spaces in todomvc example for consistency
* Fix using one delay to control all transitions.

Vue transitions have wrong timing when having CSS like the following:

```
.[transition-name]-enter-active, .[transition-name]-leave-active {
  transition: opacity 0.8s ease, transform 0.7s ease;
  transition-delay: 0.4s;
}
```

Which in turn bubbles errors to the console.

* Fix linting.
* fixed #3942

* fixed #3942
* fix v-model with array binding

* add mutli selects test case

* add test case. v-bind with array

* add comments

* code refactor
@fnlctrl
Copy link
Member

fnlctrl commented Oct 27, 2016

No spams please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.