Skip to content
Merged

3.0 #329

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added Webpack ES6 build example.
  • Loading branch information
jmdobry committed Jul 1, 2015
commit 95ef554b299e7b09081b905014919d2da75341c8
3 changes: 3 additions & 0 deletions build_examples/webpack_es6/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Running `webpack` in this directory will produce `bundle.js`

Note the external dependency "axios" that is excluded from the build (it's not needed when using js-data-angular).
8 changes: 8 additions & 0 deletions build_examples/webpack_es6/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import angular from 'angular';
import jsDataModuleName from 'js-data-angular';

angular.module('app', [
jsDataModuleName
]).run((DS, DSVersion, $rootScope) => {
$rootScope.test = 'It works! Using js-data ' + DSVersion.full;
});
Loading