angular-cli


Create Project with Angular 4 Release using angularcli


How do I create new project with the latest angular 4 release using angularcli with the command below
$ ng new new_project
I have the following versions installed
- #angular/cli: 1.0.0-rc.2
- node: 7.7.3
- npm: 4.4.1
You cannot create a new Angular application with the CLI that uses Angular 4 out of the box. At least, not at the moment. Only Angular 2 is supported by the CLI, at this time. I imagine that will change soon enough.
However, you can create a new application using ng new <app-name>, and then change the version of Angular it uses in the package.json. Run npm install, and it should all work. That has been my experience.
Hope this helps you out.
UPDATE:
I am mistaken! There is an option that you can pass to the ng new command that will set up the project to use ng 4.
ng new project_new --ng4
From ng --help:
--ng4 (Boolean) (Default: false) Create a project with Angular 4 in the template.
Right now this sets up the #angular section package.json as follows.
"dependencies": {
"#angular/common": ">=4.0.0-beta <5.0.0",
"#angular/compiler": ">=4.0.0-beta <5.0.0",
"#angular/core": ">=4.0.0-beta <5.0.0",
"#angular/forms": ">=4.0.0-beta <5.0.0",
"#angular/http": ">=4.0.0-beta <5.0.0",
"#angular/platform-browser": ">=4.0.0-beta <5.0.0",
"#angular/platform-browser-dynamic": ">=4.0.0-beta <5.0.0",
"#angular/router": ">=4.0.0-beta <5.0.0",
...
Just tried it, and it works.
I hope this helps you out.

Related Links

zone.js promise overwritten when deploy angular 2 (4) application on apache tomcat
Deploying Angular on Linode
Angular-cli with Stylus doesn't work
Use angular-cli proxy for multiple backends
chunk files size are multiplied by 5 on build size ng build --prod
AngularCli: disable minification
Angular Cli e2e element explorer not responding
Angular cli generate a service and include the provider in one step
Angular-cli not generating dist directory with ng build
How to update service json or array value on click in angular2?
How to revert from Angular-cli to Angular without cli for server-side rendering with Angular Universal
How to change file index outside the root
angularCLI Access-Control-Allow-Origin Multiple Origin Domains
Angular CLI how to merge json files
Angular CLI (ng) use single instead of double quotes
can't install angular cli on ubuntu 16.04

Categories

HOME
jar
freepascal
wildcard
facebook-graph-api
extract
hana
matplotlib
h2
zend-framework2
jscript
ios10
ext.net
avl-tree
i2c
cartodb
activesync
cratedb
typeahead
cloudflare
medium-editor
ssms-2016
reduction
zope
redux-observable
eclipselink
cython
distance
delete-file
iis-10
activepython
katharsis
emv
reply
autofill
invoke-command
strophe
clockwork
hotmail
large-data
ksoap
npm-publish
es-shell
xamarin.uitest
linq-to-entities
android-preferences
common.logging
sendgrid-templates
tripwire
amd
recycle-bin
gce
cdk
httplib2
teiid
ingres
pspice
nsfetchedresultscontrolle
backstop.js
tomcat5
anti-cheat
web-essentials
base32
rx-groovy
hiera
android-search
lexicographic
mser
fragment-tab-host
hidden-field
sid
argument-passing
visualstatemanager
crystal-reports-10
localtime
resgen
xslkey
qsqltablemodel
autostart
deploying
redirectstandardoutput
isolatedstorage
visual-web-gui
entity-framework-ctp5
selectonemenu
webkit-transform
scraperwiki
j-interop
communicationexception
clients
boost-date-time
chdatastructures
graniteds
grooveshark
rtsp-client
internals
odbc-sql-server-driver
weborb

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App