sparkalow / angular-truncate

truncate text and add ellipses.
MIT License
311 stars 88 forks source link

Problem with bower install #30

Open vostrik opened 8 years ago

vostrik commented 8 years ago

You`ve wrote angular 1.2 version in dependencies. It conflicts with modern projects (angular v. 1.4.8 for me).

johnjspiteri commented 8 years ago

@vostrik, it references "0.1.2" in package.json... download it manually and it will work fine.

https://github.com/sparkalow/angular-truncate/blob/master/package.json

NKjoep commented 8 years ago

@johnjspiteri package.json is for npm :) @vostrik was talking about bower and he's right.

if you look at https://github.com/sparkalow/angular-truncate/blob/master/bower.json you'll see this:

{
  "name": "angular-truncate",
  "version": "0.1.2",
  "main": ["./src/truncate.js"],
  "dependencies": {
    "angular": "~1.2.0"
  }
} 

This angular-truncate wants angular 1.2.0 or similar, which conflicts with greater versions (1.3 or 1.4...)

BernardoSilva commented 8 years ago

@vostrik you can use this version where you don't have the 1.2 restriction.

See here angular-truncate-2