Skip to content

Commit

Permalink
README : added module name to inject when using step way module
Browse files Browse the repository at this point in the history
  • Loading branch information
MacKentoch committed Sep 8, 2015
1 parent dbb261f commit 9fde738
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 5 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ Bower and NPM packages are coming soon so right now (*which means around Sept. 2

>demo : `index_StepWay_As_module` in `dist` directory.
####Inject easy form generator in your app

Just inject `eda.easyformGen.stepway` in you application :

```javascript
angular
.module('YOUR_APP', [
'eda.easyformGen.stepway' //injects easy form generator-step way
])

```


####All easy form generator just by this small html :
```html
<eda-step-way-easy-form-gen></eda-step-way-easy-form-gen>
Expand Down
2 changes: 1 addition & 1 deletion dist/index_StepWay_As_Module.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
'use strict';
angular
.module('appDemo', [
'ngwfApp' //injects easy form generator
'eda.easyformGen.stepway' //injects easy form generator-step way
])
.controller('demoController', demoController);

Expand Down
2 changes: 1 addition & 1 deletion dist/public/js/eda.stepway.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/public/js/eda.stepway.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index_StepWay_As_Module.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
'use strict';
angular
.module('appDemo', [
'ngwfApp' //injects easy form generator
'eda.easyformGen.stepway' //injects easy form generator-step way
])
.controller('demoController', demoController);

Expand Down
3 changes: 3 additions & 0 deletions public/js/eda.stepway.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
;(function(){
'use strict';

//alias module to distinguish the drag and drop way
angular
.module('eda.easyformGen.stepway', ['ngwfApp']);

angular
.module('ngwfApp', [
Expand Down
2 changes: 1 addition & 1 deletion public/js/eda.stepway.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/app/stepway/ngwfApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
;(function(){
'use strict';

//alias module to distinguish the drag and drop way
angular
.module('eda.easyformGen.stepway', ['ngwfApp']);

angular
.module('ngwfApp', [
Expand Down

0 comments on commit 9fde738

Please sign in to comment.