Created
May 22, 2013 14:55
-
-
Save benhowdle89/5628170 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var model.LineItems = [blah, blah, blah]; // pseudo array declaration | |
var projects = BB.Collection; // pseudo collection declaration | |
model.LineItems[1].ProjectNumber = 'xyz'; // an example value for a line item | |
//in view render function | |
for (x in model.LineItems) { | |
model.LineItems[x].projects = projects; | |
} | |
//html in template | |
<select id="quotesProject"> | |
{{#select model.ProjectNumber}} | |
{{#each projects}} | |
<option value="{{Number}}">{{Name}}</option> | |
{{/each}} | |
{{/select}} | |
</select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doing it that way does at least mean: