Explanation about CLI code Structure.
See original GitHub issueAfter the Release of angular CLI, I have decided to work with angular CLI but from very start leads to some confusion which are not cleared yet so hope somewhere here help me out :-
- In
index.html
i have found some amazing interpolation syntax of angular, whats the role of these in our app ?
syntax like -
{{#unless environment.production}}
{{/unless}}
{{#each scripts.polyfills}}
<script src="{{.}}"></script>{{/each}} //what is {{.}} here ??
what does `/` this mean in {{/unless}}
and here `#` in the {{#each ...}} ??
- when i run command
ng g component demo
, it creates component in perfact manner but after creating found one file namedindex.ts
for every component, whats the role ofindex.ts
here ? - Before CLI i have use
gulp
task’s to perform compilation(*.ts to *.js) , In CLI how and where these action being performed ?? - whats the role of
angular-cli.json
file ?
any help would be appericiated, thanks.
I have also ask same question on stackoverflow but did’t get much attension here http://stackoverflow.com/q/37588579/5043867
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
What is a command-line interface (CLI)? - TechTarget
A command-line interface (CLI) is a text-based user interface (UI) used to run programs, manage computer files and interact with the computer. Command-line ......
Read more >Command-line interface - Wikipedia
A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive commands from a user in the form of lines of...
Read more >Command Line Interface Guidelines
An open-source guide to help you write better command-line programs, taking traditional UNIX principles and updating them for the modern day.
Read more >Command line crash course - Learn web development | MDN
Help newcomers to web development format their code in best-practice fashion. Be installed on any operating system and even as a direct part...
Read more >How to Structure a Go Command-Line Project - Benjamin Cane
From a project structure perspective, it helps to group code with a common purpose together. It makes it easier for others to find...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Simplicity is broken with Angular-cli, it is a complicated irritating weird tool. There are so many config files there!!??
We should be able to configure development or production state when bootstraping in the main.ts file using a single line of code.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.