JavaScript for Line of Business Applications
596.1K views | +0 today
Follow
JavaScript for Line of Business Applications
Keeping track of current JavaScript Frameworks that help design your clientside Business Logic Layers.
Curated by Jan Hesse
Beam to my Inbox:
Your new post is loading...
Your new post is loading...

Popular Tags - Filter using the Funnel

Current selected tag: 'Solr'. Clear
Scoop.it!

Paginated Collections with Ember.js + Solr + Rails

Paginated Collections with Ember.js + Solr + Rails | JavaScript for Line of Business Applications | Scoop.it

This time, I would like to show you how to add a simple pagination helper to your Ember.js application.

For this example, I will be using Rails + Solr for the backend and Ember.js as my frontend framework.

I am doing this with Rails and Solr, but you can do it using other backend frameworks, as long as the JSON's response resembles what we have here:

Before we start, there's something I want to say, just in case you are using the ember-rails gem. 

I have created a new Model, Serializer and Controller on Rails. So, all this means that I'm going to need a newEmber.js model, in order to get it working. Remember, the store is in charge of finding the models through the adapter. It will communicate with the new Rails controller to serialize the new model.

From my point of view, we can have many paginated collections inside an application. So, one way to avoid code duplication is the use of Ember.js Mixins. 


No comment yet.
Scoop.it!

Creating a Solr HTML element with AngularJS!

Creating a Solr  HTML element with AngularJS! | JavaScript for Line of Business Applications | Scoop.it

Currently one of my favorite things about AngularJS is the ability to create your own custom HTML tags. For instance, in a prototype I’m building, I just used AngularJS to create a new element which loads up a set of search results and displays them on the page. Let’s take a look at how this works.

I love that AngularJS has totally nailed the model-view-controller pattern. Usually when someone says they’re using a MVC-based framework I enjoy asking them what that means and how their framework fulfills the MVC pattern. I guess I’m sadistic, but I like hearing them mumble and sputter as they try to answer the question.

Monitis's curator insight, August 17, 2013 4:36 AM

AngularJS seems getting more popular, it is a framework maintained by Google

Scoop.it!

Instant Search with Solr and AngularJS

Instant Search with Solr and AngularJS | JavaScript for Line of Business Applications | Scoop.it

Previously, we gave an example of a super simple search results widget that utilized jsonp and AngularJS. Since then, we’ve polished our Angular skills quite a bit. Enough so, that I was able to throw together this instant search widget, in less than an hour. Angular truly is an amazing UI tool.

Below is the source for the widget (and here it is on github and jsfiddle). Like our previous example, we use Angular directives to create a custom HTML element. Unlike our previous example, we’ve allowed some interactivity with a simple input tag. Enjoy!

No comment yet.