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

Access to -aot parameter in code
Missing peer dependencies after installing latest angular-cli: What to do?
angular-cli ng serve : Error: No errors
Getting error after Angular cli update
Does angular-cli uses rollup to do ahead-of-time compilation and adding all into one file?
Angular CLI install error
Using glob for assets in angular-cli throws error
Importing Global SCSS into Component SCSS with Angular-CLI
Error during AOT build with angular-cli 24 and Angular 2.4.1
Add importer to node-sass in angular-cli project
angular-cli#1.0.0-beta.23 (2016-12-15) NOT on npm
Angular cli for existing github project
How to pass config data to NgModule so NgModule will be compiled with AOT
Cloning a repo based on Angular CLI
How can I speed up Angular CLI Live Reload - 1-2 minutes per change
Generating a barrel when calling ng g component <myName>

Categories

HOME
xbox-live
cakephp-3.x
signalr
tinyos
reverse-engineering
vb6
filterrific
xamarin.android
angular-cli
rotation
mapping
thunderbird-addon
ubuntu-12.04
codeeffects
webdav
ll
browserify
aruco
game-maker-studio-1.4
camera-calibration
x-frame-options
equalizer
uicollectionview
bar-chart
zoho
aws-cognito
sql-update
jquery-form-validator
cocoa-touch
npm-install
cronet
java-ee-7
continuous-deployment
hash-collision
dss
svnkit
polymorphism
qtablewidget
von-neumann
remote-server
npm-publish
forecasting
initializer
control-flow-graph
finite-element-analysis
mod-fcgid
rich-text-editor
facebook-chatbot
ajp
gd
slot
ticker
modelattribute
butterknife
execl
uicollectionviewlayout
onresume
wcf-ria-services
foxit
dojox.charting
gradle-release-plugin
inet
cctray
lemoon
sem
response-headers
subresource-integrity
built-in
ipojo
mogrify
stream-framework
viper-architecture
lines-of-code
epl
sqoop2
obfuscar
proximity
named-ranges
ultrawingrid
grunt-contrib-concat
humanizer
openkinect
visual-c++-2010-express
.net-cf-3.5
carddav
manage.py
dwolla
pep8
database-permissions
android-contextmenu
wpdb
angularjs-timeout
cgpath
dropdownlistfor
linkedhashset
legacy-code
hibernate3
file-exists
msbuildextensionpack
ihttphandler
for-xml-path
nagle
recordset
querypath
opcodes
castle-validators
associativity

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