Git Product home page Git Product logo

Comments (3)

mastermind1981 avatar mastermind1981 commented on August 11, 2024

you don't have elasticsearch.angular.js in your js dependencies:

add it to your dependencies.

from elasticui.

YousefED avatar YousefED commented on August 11, 2024

Also, have you defined

angular.module('yourApp', ['elasticui']).constant('euiHost', 'http://localhost:9200');

as described on the project docs?

from elasticui.

janpetras avatar janpetras commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.