I'm trying to use this cool little angular module:
https://angular-material-calendar.bradb.net/
When doing bower install I get:
Unable to find a suitable version for angular-material, please choose one by typing one of the numbers below:
1) angular-material#~0.11 which resolved to 0.11.4 and is required by material-calendar#0.2.14
2) angular-material#^1.0.9 which resolved to 1.0.9 and is required by public
It looks like this thing was developed in beta, and I can't get it to work with 1.0.9. Does anyone know any workarounds? This module is exactly what I'm looking for.
Thanks!
Use --force-latest or add component version to resoltions key in bower.json
Note
For more info you could check the issue here. I hope this helped.
Related
This is just for describing the issue and sharing my solution, I got stuck a lot of time on it.
This issue happened after I upgraded the Angular 10 -> 11 and changed the builder from udk:udk-runner to #angular-devkit
The issue I was facing is when I set the field bundleDependencies in angular.json to true . The Puppeteer cannot start with the error cannot launch the browser
Then I found it also happened on the other external libraries I'm using at the Server side like BullJS Bull-Board Puppeteer-Cluster with the below error
Github source for demo the issue: https://github.com/phattranky/angular-ssr-error-with-pupepteer
The solution is quite simple you just need to add externalDependencies below the field bundleDependencies, which are the libraries we are using.
"externalDependencies": ["puppeteer", "puppeteer-cluster", "bull", "bull-board"]
Sample:
What is the externalDependencies ?
https://github.com/angular/angular-cli/blob/master/packages/angular_devkit/build_angular/src/builders/server/schema.json
If you have the better solution and any feedbacks, please share for me. Thanks
We are using angular 1.4.8 and i want to use angular-notifier module in our application. I didn't found any valid examples that explain me how to use it.
According to this I am not sure if i use latest version than it will work or not.
Any help?
Thanks!
The ngNewRouter (now named ngComponentRouter) was supposed to be in 1.4, but was delayed and is now supposed to go into 1.5 (as I understand it). However, it's not in the 1.5 beta2 package. I do see angular1_router on github, but I don't see that built module included in the 2.0 alpha packages either.
Does anyone know if the new router will actually be in the 1.5 release?
Is there a current build of the new router hosted anywhere? I managed to find a copy of the compiled js from a random plunker, but haven't been able to compile the source myself (issues with node-gyp & msbuild, still working on that).
Does anyone know of any up-to-date documentation or working samples on the new component router? The best site I've found so far is pretty close (it says it was published in February, but it uses ngComponentRouter rather than ngNewRouter so it's clearly being updated), but the post still has things wrong - like it says to create controllers for the components you're loading for the routes, but I discovered that you actually need to be creating them as directives (optimally using the new "component" wrapper in 1.5) with the restrict set to "A" (that was fun to figure out).
You can get the new router via npm with:
npm install #angular/router
For more information on the current API you can have a look at:
https://angular.io/docs/js/latest/api/router/Router-class.html
It's for Angular 2 but the core mechanics of the router are the same, and it should give you some hints on how the API has been changed compared to the ngNewRouter.
It looks like the component router has been released. Here is the official documentation: https://docs.angularjs.org/guide/component-router
I'm not seeing any official announcements saying it was released yet though, so I'm not sure if it's supposed to be "official" or not.
I am trying to integrate datepicker : https://github.com/g00fy-/angular-datepicker
I get following error:
Unable to find a suitable version for angular, please choose one:
1) angular#1.2.14 which resolved to 1.2.14 and is required by angular-datepicker#1.0.14
2) angular#^1.3.0 which resolved to 1.4.5 and is required by h4h
3) angular#>=1.2.0 <1.5.0 which resolved to 1.4.5 and is required by angular-moment#0.10.3
4) angular#~1.4.x which resolved to 1.4.5 and is required by angular-modal-service#0.6.7
5) angular#1.4.5 which resolved to 1.4.5 and is required by angular-animate#1.4.5
Can you please suggest me what am I missing here ? Thanks in advance.
angular-datepicker#1.0.14 claims it depends on angular#1.2.14. However in your project, you are using angular#1.4.5.
you can try using angular#1.4.5 with datepicker 1.0.14 to see if the component is still working. If not, either downgrade your angular version (includes the other angular components, e.g. angular-animate) or try to fix the compatibility issue of datepicker to make it work on angular#1.4.5.
Sorry this is a super noob Bower question, but Google is really not turning anything up here.
How do I know the name of the library to include in my Bowerfile?
For example:
I want AngularJS. So I add asset 'angular' to my Bowerfile because I read it in a tutorial.
Now I want to add D3js. I found this bower.json in D3's github repo: https://github.com/mbostock/d3/blob/master/bower.json. Since its name is 'd3', does that mean I just add asset 'd3' to my bowerfile?
Is there some public site like that lists all the Bower components? For example with Ruby Gems there is RubyGems.org. For PHP's composer there is https://packagist.org/.
There is a list of package names ( the things you should include) here:
http://bower.io/search/
Also, yes, the 'name' attribute of the bower.json in some official repository whose code you want will match the asset you need to install.
The bower command line tool also has a search feature that will help you. Read this:
http://blog.teamtreehouse.com/getting-started-bower
Hope that helps. Post your bower.json up and what commands you are trying if it doesn't seem right.