52 matches across 1 files for TODO path:examples/classic/todomvc/app.js
snippet_mode: grep · sorted by relevance
examples/classic/todomvc/app.js JAVASCRIPT 52 matches · showing 5 view file →
1// Full spec-compliant TodoMVC with localStorage persistence
2// and hash-based routing in ~150 lines.
3
· · ·
4// localStorage persistence
5var STORAGE_KEY = 'todos-vuejs-2.0'
6var todoStorage = {
7 fetch: function () {
· · ·
6var todoStorage = {
7 fetch: function () {
8 var todos = JSON.parse(localStorage.getItem(STORAGE_KEY) || '[]')
· · ·
8 var todos = JSON.parse(localStorage.getItem(STORAGE_KEY) || '[]')
9 todos.forEach(function (todo, index) {
10 todo.id = index
· · ·
9 todos.forEach(function (todo, index) {
10 todo.id = index
11 })
+ 47 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.