Skip to content

Instantly share code, notes, and snippets.

@LeoNero
Created August 13, 2016 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeoNero/5807fffc322671b825a7af276fd4f0b0 to your computer and use it in GitHub Desktop.
Save LeoNero/5807fffc322671b825a7af276fd4f0b0 to your computer and use it in GitHub Desktop.
<template>
<div>
<select md-select value.bind="selectedTaskType" change.delegate="onChangeTaskType()">
<option model.bind="null">Choose the type of the task...</option>
<option repeat.for="taskType of tasksType" model.bind="taskType">
${taskType.number} - ${taskType.type}
</option>
</select>
</div>
<br>
<div>
<select md-select value.bind="selectedTask">
<option model.bind="null">Choose a task...</option>
<option repeat.for="task of tasks" model.bind="task">
${task.number} - ${task.question}
</option>
</select>
<p>Selected question: ${selectedTask.question}</p>
</div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment