angular-cli


Angular Cli support for inline templates and css


Does latest version of Angular cli supports inline templates and css for components ? i dont see --inline-template option there anymore ?
https://github.com/angular/angular-cli
In your angular-cli.json file you can specify if you want your files to have inline css and templates.
That way, when you use ng generate component it will use the defaults.
{
"project": {
"version": "1.0.0-beta.22-1",
"name": "client"
},
"apps": [
{
"root": "src",
"outDir": "build",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"test": "test.ts",
"tsconfig": "tsconfig.json",
"prefix": "ws",
"mobile": false,
"styles": [
"styles/main.scss"
],
"scripts": [],
"environments": {
"source": "environments/environment.ts",
"prod": "environments/environment.prod.ts",
"dev": "environments/environment.dev.ts"
}
}
],
"addons": [],
"packages": [],
"e2e": {
"protractor": {
"config": "./protractor.conf.js"
}
},
"test": {
"karma": {
"config": "./karma.conf.js"
}
},
"defaults": {
"styleExt": "scss",
"prefixInterfaces": false,
"inline": {
"style": true, <<<--- CHECK IT OUT!!
"template": true
},
"spec": {
"class": false,
"component": true,
"directive": true,
"module": false,
"pipe": true,
"service": true
}
}
}

Related Links

How can I speed up Angular CLI Live Reload - 1-2 minutes per change
Generating a barrel when calling ng g component <myName>
Setting up tether-drop to work with angular-cli#1.0.0-beta.24
Angular CLI (AOT) gives error: ERROR in Cannot determine the module for class
Angular CLI - ng serve won't run unless I specify port
ERROR in Multistyles…Module not Found (Angular-cli.json)
Angular Cli support for inline templates and css
Angular Cli - How do I rebuild my project
How to change angular 2 port from 4200 to any other
Is autoprefixer active in angular-cli beta 19
How to use nconf with Angular CLI?
angular-cli how to split output js files to vendor and script js file
Errors when installing angular-cli
Using Angular-CLI build to copy a file / directory
angular-cli 'ng' commands sluggish
I keep getting errors when usng angualr-cli - Cannot find Set, Promise, Map

Categories

HOME
arrays
sharepoint
cakephp-3.x
caching
meshlab
websphere
apollo
rocketmq
jrebel
quill
jpanel
browserify
docker-windows
outlook-web-addins
wysiwyg
informatica-powercenter
automata
symfony-forms
store
lenskit
ssms-2016
tree-traversal
jpeg2000
linq-to-sql
ejbca
servicemix
logarithm
jenkins-job-dsl
metis
unpack
upnp
helper
thinking-sphinx
gzip
pitest
superscript
lmdb
pari
freebase
data-extraction
transient
gettext
openpgp
passenger
magiczoomplus
tic-tac-toe
exiftool
dojox.mobile
z3py
openweathermap
lumen-5.3
appstore-approval
web-deployment-project
gist
dwarf
chrome-remote-desktop
jexl
uicollectionviewlayout
inject
coremidi
spring-ioc
picasa
git-annex
fps
aerogear
fill
bluesnap
difference
data-import
response-headers
futuretask
ytplayerview
divide-by-zero
criteria-api
swift2.1
stackframe
consensus
jai
jcr-sql2
obfuscar
utf-32
google-admin-audit-api
proxies
bsp
alertifyjs
phpdocx
reserved-words
uipickerviewcontroller
sanitization
cdata
vertical-rhythm
mailcore
qtgui
mozart-mvc
mvccontrib
rose-db-object
z-machine
makefile-project
path-manipulation
ajax.beginform
adsl
pantheios
windows-controls
nt4
internals
data-execution-prevention
dotproject

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