-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
98 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
`browserify -x axios app.js > bundle.js` will produce `bundle.js` | ||
|
||
Note the external dependency "axios" that is excluded from the build (it's not needed when using js-data-angular). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// this is what you would do in a real app | ||
// var angular = require('angular'); | ||
|
||
// for the example to work | ||
var angular = require('../../node_modules/angular'); | ||
|
||
console.log(angular); | ||
|
||
angular.module('app', [ | ||
// this is what you would do in a real app | ||
// require('js-data-angular') | ||
|
||
// for the example to work | ||
require('../../dist/js-data-angular.js') | ||
]).run(function (DS, DSVersion, $rootScope) { | ||
$rootScope.test = 'It works! Using js-data ' + DSVersion.full; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html ng-app="app"> | ||
<head> | ||
<title>My App</title> | ||
<!-- load bundled scripts --> | ||
<script src="bundle.js"></script> | ||
</head> | ||
<body> | ||
<h1>{{ test }}</h1> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
`browserify -x axios app.js > bundle.js` will produce `bundle.js` | ||
|
||
Note the external dependency "axios" that is excluded from the build (it's not needed when using js-data-angular). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// this is what you would do in a real app | ||
// var angular = require('angular'); | ||
|
||
// for the example to work | ||
var angular = require('../../node_modules/angular'); | ||
|
||
console.log(angular); | ||
|
||
angular.module('app', [ | ||
// this is what you would do in a real app | ||
// require('js-data-angular') | ||
|
||
// for the example to work | ||
require('../../dist/js-data-angular.js') | ||
]).run(function (DS, DSVersion, $rootScope) { | ||
$rootScope.test = 'It works! Using js-data ' + DSVersion.full; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html ng-app="app"> | ||
<head> | ||
<title>My App</title> | ||
<!-- load bundled scripts --> | ||
<script src="bundle.js"></script> | ||
</head> | ||
<body> | ||
<h1>{{ test }}</h1> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
entry: './app.js', | ||
output: { | ||
filename: 'bundle.js' | ||
}, | ||
externals: ['axios'], | ||
resolve: { | ||
alias: { | ||
'js-data-angular': '../dist/js-data-angular.js' | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters