Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 11 days 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 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-08T13:50:26.000Z (about 11 years ago)
- Last Synced: 2024-04-14T14:36:40.057Z (7 months 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
![Screenshot of dug](screenshot.gif "screenshot")
##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
```