EarnADegree/earnadegree.com — pull request #2 by kwhitley (2013-02-18 16:33:14+00:00)
Title: [WIP] Drop-In Directory Links

## Implementation

To embed the directory links with a given selection on the page, simply include the script where the content should be injected.

```html

```

## Advanced
```html

```

## Notes
- The same widget **`src="/widgets/links?subject=5&category=3"`** url can be used multiple times on a page with the same or different templates. This script will only be requested from the server once but still implemented appropriately in each unique location.
- The server should (and does in this demo) send back proper expiry headers to prevent reloading of same widget urls across multiple pages within the site
- The server should (but does not yet) cache both the feed requests and responses
- The widget template should be included in a non-angular section of the page. Otherwise angular will try to parse the content, so by the time the directory links directive finds the content, it not be accurate.

## Preview
[http://localhost:3000/widgets/links/test](http://localhost:3000/widgets/links/test)