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

Angular cli Cannot read property 'glob' of null
Angular CLI is creating project in my home folder
Angular CLI - depdecies
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

Categories

HOME
tensorflow
cakephp-3.x
caching
ibm-watson-cognitive
jenkins-plugins
sed
puppet
formal-verification
hana
chaiscript
rfc
file-io
pygame
uiscrollview
postmessage
riak
python-unicode
ghost-inspector
jflex
skmaps
unpack
pentaho-report-designer
multichoiceitems
recurrence-relation
phpspreadsheet
google-guava-cache
lego
bing-maps-api
ksoap
zero
stdclass
nsexception
constants
taglib
stress-testing
cppunit
httplib2
iphone-developer-program
collapsingtoolbarlayout
bettercms
pdfkit
typhoon
software-product-lines
linkageerror
inet
brackets-shell
java.util.calendar
sem
retro-computing
futuretask
anti-patterns
ipojo
vine
leadtools-sdk
coypu
tilestache
named-ranges
cocoascript
temp-tables
snmp4j
method-overriding
eclipse-classpath
slick-2.0
config-files
roxygen
jquery-tabs
.net-cf-3.5
html-form-post
manage.py
fileconveyor
xslkey
database-permissions
qt4.6
trailing-slash
maven-ear-plugin
tfs-power-tools
icefaces-3
plone-funnelweb
cross-domain-policy
printing-web-page
search-path
osx-leopard
jquery-ui-button
savestate
opcodes
gears
self-reference
rd

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