angular-mediaflow
v1.1.0
Published
angular-mediaflow =================
Downloads
1
Readme
angular-mediaflow
Angular Mediaflow directives
angular.module('app', ['ng-mediaflow']).config(function(mediaflowProvider) {
mediaflowProvider
.setHost('my.mediaflow.host.com')
.alias({
default: {
width: 100,
height: 100,
original: 1
},
small: {
width: 300,
height: 200
}
})
})
<mf-img id="{{id}}" config="small">
<mf-img id="{{id}}" config='[50,50,"original:1"]'>
Or using Foundation Interchange:
<mf-img id="{{id}}" mf-interchange='{"small":"default", "large":"small"}'>
You can easily specify versions inline:
<mf-img id="{{id}}" mf-interchange='{"small":[300,200], "large":[600,300]}'>