Skip to content

Instantly share code, notes, and snippets.

@aaronj1335
Created August 27, 2013 18:05
Show Gist options
  • Select an option

  • Save aaronj1335/6356931 to your computer and use it in GitHub Desktop.

Select an option

Save aaronj1335/6356931 to your computer and use it in GitHub Desktop.
mixin sel(value, options)
select(data-bind='value: ' + value + ', options: ' + options)
.foo
+sel('data().query.type', 'queryTypeOptions')
@aaronj1335
Copy link
Copy Markdown
Author

if i change data().query.type to data.query.type, it works. otherwise it doesn't.

@aaronj1335
Copy link
Copy Markdown
Author

looks like i gotta upgrade to 0.35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment