-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
entry.htmlを外部ファイルにし、AngularJSが動いてから表示することで、AngularJS適用前のDOMが表示されることを防止 …
- Loading branch information
Showing
5 changed files
with
32 additions
and
21 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div> | ||
<form ng-submit="submit()"> | ||
<select ng-model="entryForm.categoryId" ng-options="c.id as c.name for c in categories" ng-change="changeCategory()"> | ||
<option value="">-- chose category --</option> | ||
</select> | ||
<br /> | ||
<select ng-model="entryForm.itemId" ng-options="i.id as i.name for i in items"> | ||
<option value="">-- chose item --</option> | ||
</select> | ||
<br /> | ||
<input type="text" ng-model="entryForm.name"></input> | ||
<br /> | ||
<button type="submit" class="btn btn-primary">Save</button> | ||
<a href="#/" class="btn">Cancel</a> | ||
</form> | ||
</div> |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,5 @@ | |
</tr> | ||
</tbody> | ||
</table> | ||
<a href="#/entry" class="btn btn-primary">Entry</a> | ||
</div> |