mirror of https://github.com/abpframework/abp.git
5 changed files with 48 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||
@page |
|||
@using AbpDesk.Web.Mvc.Pages.App.Todo |
|||
@model IndexModel |
|||
<h2>TODO application!</h2> |
|||
|
|||
<div id="TodoApp"> |
|||
<ol> |
|||
<li v-for="todo in todos"> |
|||
{{ todo.text }} |
|||
</li> |
|||
</ol> |
|||
</div> |
|||
|
|||
@section scripts { |
|||
<script src="https://unpkg.com/vue"></script> |
|||
<script src="~/pages/app/todo/index.js"></script> |
|||
} |
|||
@ -0,0 +1,12 @@ |
|||
using Volo.Abp.AspNetCore.Mvc.RazorPages; |
|||
|
|||
namespace AbpDesk.Web.Mvc.Pages.App.Todo |
|||
{ |
|||
public class IndexModel : AbpPageModel |
|||
{ |
|||
public void OnGet() |
|||
{ |
|||
|
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,14 @@ |
|||
(function() { |
|||
|
|||
var app = new Vue({ |
|||
el: '#TodoApp', |
|||
data: { |
|||
todos: [ |
|||
{ text: 'Learn JavaScript' }, |
|||
{ text: 'Learn Vue' }, |
|||
{ text: 'Build something awesome' } |
|||
] |
|||
} |
|||
}); |
|||
|
|||
})(); |
|||
Loading…
Reference in new issue