Skip to content

Commit f55b183

Browse files
committed
Teeny bits of documentation
1 parent c670357 commit f55b183

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,30 @@ angular-mediaflow
22
=================
33

44
Angular Mediaflow directives
5+
6+
```js
7+
angular.module('app', ['ng-mediaflow']).config(function(mediaflowProvider) {
8+
mediaflowProvider
9+
.setHost('my.mediaflow.host.com')
10+
.alias({
11+
default: {
12+
width: 100,
13+
height: 100
14+
},
15+
small: {
16+
width: 300,
17+
height: 200
18+
}
19+
})
20+
})
21+
```
22+
23+
```html
24+
<mf-img id="{{id}}" alias="small">
25+
```
26+
27+
Or using Foundation Interchange:
28+
29+
```html
30+
<mf-img id="{{id}}" mf-interchange='{"small":"default", "large":"small"}'>
31+
```

0 commit comments

Comments
 (0)