https://github.com/binocarlos/dug
A simple todo application based on digger - used as an example in the docs
https://github.com/binocarlos/dug
Last synced: 4 months ago
JSON representation
A simple todo application based on digger - used as an example in the docs
- Host: GitHub
- URL: https://github.com/binocarlos/dug
- Owner: binocarlos
- Created: 2013-11-08T13:40:50.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-08T13:50:26.000Z (about 12 years ago)
- Last Synced: 2025-01-03T02:51:16.783Z (about 1 year ago)
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dug
===
A simple todo application based on digger - used as an example in the docs

##installation
The app runs as a web-page and connects to digger.io to load data.
Change the name of your warehouse on this line:
```html
```
This controls where the data is loaded from.
To clone this app - you can fork the binocarlos/todo-example warehouse and you can then write todos to the warehouse.
##How it works
### connect to digger
The page runs as a [digger](http://digger.io) angular application and so at the foot of the page we connect to digger:
```html
```
This will include angular also and so we don't need that on the page.
We also include twitter bootstrap on the page.
### load data
The warehouse we are pointing to: **binocarlos/todo-example** contains **todo** models.
Each model has **done** and **important** checkboxes that set the classname accordingly.
So - we can load all todo models and filter them using the .done classname:
load the data:
```html
```
### looping and filtering the tasks
loop over things that do not have .done classname:
```html
```
### the 'importnat' label
only show the important label if the important class is present:
```html
important
```