The MEAN stack is pretty much exactly what I need for my new project - but I’m trying to work out (and failing) what version of Angular is in the one-click app? Ideally I would like to use Angular 2 - it’s new to me so I don’t really want to learn Angular 1.
Thanks. Matthew
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
By looking at sample app, it’s 1.5.5. If you run One-Click App - MEAN, first thing you can see it’s based on meanjs.org. I don’t see exact version of Angular, but if you follow any Angular link on above site, it’ll forward you to angularjs.org. It’s the site for Angular version 1, Angular version 2 uses angular.io.
If you go to sample app directory and inspect it’s
bower.json
you’ll see following:Bower is package manager for web - it tracks package you uses and their version.
bower.json
is file where data about packages and version are stored. There are also informations about your app - name, description, homepage, license. Note the highlighted line - showing which Angular is being used. Run app:Go to the
server-ip:3000
and open Inspector (right-click on page and you’ll see something along Inspect or Inspect element, depending on browser you use). Select Console and execute:So yes, we are now sure it uses Angular 1. :) I guess you can obtain Angular 2 via npm/bower or setup stack manually. If you use:
It’ll install you latest version of Angular 2 for you. You can also try npm if you prefer it:
There is tutorial on angular.io which cover installing Angular 2 with npm.
Hope that helps you. :)