I cloned this projects : https://github.com/mgechev/angular-seed
And I added the config.js file wich containing :
config.endpoint = “MY URI”;
config.primaryKey = “MY AZURE COSMOS KEY”;
config.database = {
“id”: “FamilyDB”
};
config.collection = {
“id”: “FamilyColl”
};
config.documents ={…}
module.exports = config;
App.js contain :
/////////////////////////////
‘use strict’;
// Declare app level module which depends on views, and components
I tried to use browserify like this : browserify -r documentdb -r ./app/app.js:documentdb > bundle.js ;
It create the bundle.js file containing require function but it don’t work…