Comments (3)
you don't have elasticsearch.angular.js in your js dependencies:
add it to your dependencies.
from elasticui.
Also, have you defined
angular.module('yourApp', ['elasticui']).constant('euiHost', 'http://localhost:9200');
as described on the project docs?
from elasticui.
Hi.
The problem was that elasticui was not properly declared.
Pencilblue uses var angularController = "var pencilblueApp = angular.module('pencilblueApp', " + JSON.stringify(modules) + ") and what I had to do was basically this: var angularController = "var pencilblueApp = angular.module('pencilblueApp', " + JSON.stringify(modules) + ").constant('euiHost', 'localhost:9200')";
And also add 'elasticui' in the modules=['ngRoute') array, and remove an if declaration to make sure it's loaded.
Basically, you can see what I'm talking about here: https://github.com/pencilblue/pencilblue/blob/master/include/client_js.js between lines 40 and 45.
I don't know of a better way to do it in this context, other than removing if(!util.isArray(modules) || modules.length === 0) {
modules = ['ngRoute'];
} and leaving just the modules = ... declaration, and then modifying line 45 as described above.
It's working now, but I think I broke Pencilblue in the process.
Sorry for bothering, hope this helps others trying out ElasticUI with PencilBlue
from elasticui.
Related Issues (20)
- multiple items cannot be selected using eui-checklist widget
- Input search does not refresh the search when the clean icon is clicked
- Partial search HOT 1
- Impossible to use more than one searchbox HOT 1
- Top level filter parameter deprecated in ES 5
- checkbox does not filter
- Hello!
- is it possible to use ElasticUI with elasticsearch 5.x? HOT 6
- Has "ElasticUI" been tested with partial files?
- change indexVM.page in controlle HOT 1
- How do I add some logic to eui-query? HOT 1
- Default to AND operator in searchbox HOT 1
- Term Aggregation - Custom order
- Sort HOT 1
- Is it possible to add custom parameter to a url?
- Multilanguage, translate ... change the {{bucket.key}} on the fly
- Access Control with POST/GET/DELETE/...
- Space issue in Single Select and Checkbox HOT 2
- UseCase Searchbox to filter only one facet
- jsfiddle Demo does not work.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticui.