Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```