We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Demo如下:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <script src="http://rawgit.com/sindresorhus/multiline/master/browser.js"></script> <script src="http://rawgit.com/regularjs/regular/master/dist/regular.min.js"></script> <script> var ListView = Regular.extend({ name: 'listView', config: function() { var self = this; setTimeout(function() { self.$update('list1', []); self.$update('list2', [{name: 1}]); }, 200); }, template: multiline(function(){/* {#list list as item} <div>{item.name}</div> {/list} */}) }); var App = Regular.extend({ config: function() { // this.data.children1 = undefined; // this.data.children2 = undefined; }, template: multiline(function(){/* <listView list1={children1} list2={children2} /> {#if children1}Length: {children1.length}{/if} {#if children2}Length: {children2.length}{/if} */}) }); (new App()).$inject('body'); </script> </body> </html>
The text was updated successfully, but these errors were encountered:
6b93a28
regular/test/spec/browser-watcher.js
Line 483 in 6b93a28
Sorry, something went wrong.
No branches or pull requests
Demo如下:
The text was updated successfully, but these errors were encountered: