Giter Site home page Giter Site logo

uttesh / ngreactions Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 2.0 0 B

Is an Angular directive for reactions like rating on services, which will allow customers to choose the reaction on the service like the latest facebook reactions, its fully customizable directive, can integrate any images instead of default.

Home Page: http://uttesh.github.io/ngreactions/

License: MIT License

CSS 86.92% HTML 2.60% JavaScript 10.48%

ngreactions's Issues

Some Suggestions

Hi,

Here are some suggestions I have to improve your directive:

  1. Allow it to work with nested ratings on the scope ie. $scope.ratings.user, currently that doesn't work.
  2. Simplify much of the code in the directive using a directive HTML template with an ng-repeat for the reactions.
  3. Change the explicit addClass / removeClass code to use ng-class instead.
  4. Add a main section in bower for the js and the css to auto-inject into applications easier.

In demo reactions don't un...feel?

screen shot 2016-01-18 at 6 40 17 pm
screen shot 2016-01-18 at 6 40 21 pm
screen shot 2016-01-18 at 6 40 25 pm

Reactions maintain color after a new reaction is selected in demo. Haven't tried in app yet. Might be an issue solely in demo. Will report back if I find otherwise.

General Questions

Hi,

Thanks for this directive, it looks great and I don't believe there are any alternatives like it.

I do have some questions about how it is implemented:

  1. Why is the ID set to new Date().getTime()?
  2. Does the example need jquery.js? It makes me think the plugin might, too.
  3. What's the plan with the commented out slider code?

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.