question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Explanation about CLI code Structure.

See original GitHub issue

After 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 :-

  1. 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 ...}} ??
  1. when i run command ng g component demo, it creates component in perfact manner but after creating found one file named index.ts for every component, whats the role of index.ts here ?
  2. Before CLI i have use gulp task’s to perform compilation(*.ts to *.js) , In CLI how and where these action being performed ??
  3. 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:closed
  • Created 7 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
siva636commented, Jun 6, 2016

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.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 6, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found