todomvc

todomvc-app

半世苍凉 提交于 2021-02-17 12:47:04
1、HTML 1 <! doctype html > 2 < html lang ="en" > 3 < head > 4 < meta charset ="utf-8" > 5 < meta name ="viewport" content ="width=device-width, initial-scale=1" > 6 < title > Template • TodoMVC </ title > 7 < link rel ="stylesheet" href ="node_modules/todomvc-app-css/index.css" > 8 <!-- CSS overrides - remove if you don't need it --> 9 < link rel ="stylesheet" href ="css/app.css" > 10 </ head > 11 < body ng-app ="MyTodoMvc" > 12 < section class ="todoapp" ng-controller ="MainController" > 13 < header class ="header" > 14 < h1 > todos </ h1 > 15 < form ng-submit ="add()" > 16 < input class =

How do I add Projects parent to Ember-CLI TodoMVC?

﹥>﹥吖頭↗ 提交于 2019-12-08 04:12:47
问题 I am working on a todo type project using Ember-CLI. I used as a starting point the nifty todoMVC project, but built with Ember-CLI using this guide: http://blaketv.com/2014/10/03/ember-cli-todo-mvc-tutorial-0-0-47// My question is, how would I go about adding projects at the parent level. So we would have a master-detail type interface and in the sidebar we would have projects and you could CRUD project names, and then when you click on a project name, you see the todos in the detail pane. I

Durandal TodoMVC - Cannot write a value to a ko.computed

女生的网名这么多〃 提交于 2019-12-08 01:28:21
问题 I'm trying to build a version of the todo app using Durandal (including Knockout + RequireJS) from a TodoMVC template. I realize that a todo app doesn't really show off the features of Durandal, but I'm on the learning path and figured it would be a good first project. Anyway, in the process I've stumbled upon an error that I'm unable to solve (see below). Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any

Understanding TodoMVC Example

橙三吉。 提交于 2019-12-06 02:51:05
问题 Starting to learn node.js and backbone.js and am using the TodoMVC example as my guide. There are a couple parts I am having trouble wrapping my head around. See below. Here is app.js. var express = require('express') , http = require('http') , mongoose = require('mongoose') , models = require('./models') , routes = require('./routes') , app = express(); app.configure(function () { app.set('views', __dirname + '/views'); app.set('view engine', 'jade'); app.use(express.favicon()); app.use

Understanding TodoMVC Example

泄露秘密 提交于 2019-12-04 05:52:47
Starting to learn node.js and backbone.js and am using the TodoMVC example as my guide. There are a couple parts I am having trouble wrapping my head around. See below. Here is app.js. var express = require('express') , http = require('http') , mongoose = require('mongoose') , models = require('./models') , routes = require('./routes') , app = express(); app.configure(function () { app.set('views', __dirname + '/views'); app.set('view engine', 'jade'); app.use(express.favicon()); app.use(express.logger('dev')); app.use(require('stylus').middleware({ src: __dirname + '/public' })); app.use