-
Notifications
You must be signed in to change notification settings - Fork 877
Conversation
149a496
to
cd73078
Compare
template: `<h1>Hello Angular!</h1>`, | ||
selector: 'my-app' | ||
}) | ||
export class AppComponent { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the one hand, exporting this here for a hello world can be confusing but on the other hand, removing it could confuse users as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went back and forth on this. I decided to keep export
even though not needed rather than have this be a difference later or make you wonder why AppModule
is exported and AppComponent
is not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is extra, and if you truly want minimal, then I think removing the export
is smart. Otherwise, the the educated eye it will make them look for where it is used. This is not a tool to build on, right? If it was, we would make multiple files in the first place. I think, rather, that we want a simple starting point to explain A2 at the most simplest level. In that case, I think removing export works. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two votes to remove export on component class to my one; you both win.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely brilliant Ward. That Setup guide is a masterpiece.
On the other hand, I feel like the quickstart is too short. Shortstart? :P
|
||
- var _package_and_config_files = _docsFor == 'dart' ? 'pubspec.yaml' : 'configuration files' | ||
The `AppModule` tells Angular<br> | ||
***what you need*** — _imports_ the `BrowserModule` to display the application in the browser.<br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to display. What do you think about "To use the application in the browser".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree needed better verb. I went with "run" instead of "display" or "use"
As much fun as this is | ||
* you can't ship your app in plunker. | ||
* development in the browser is slow. | ||
* you aren't always online |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing dot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed all periods from these bullets for consistency (rather than make them all sentences.)
* you aren't always online | ||
* the type support, refactoring, and code completion only work in your local IDE. | ||
|
||
# Setup a local develoment environment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
development
.l-sub-section | ||
:marked | ||
### Next step | ||
[The _Tour of Heroes_ tutorial](../tutorial) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We trigger a "next step" automagically for the basic guides so this will trigger two next steps. No bueno.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrote:
.l-sub-section
:marked
### Next step
[The _Tour of Heroes_ tutorial](../tutorial)
The forced magic generated "next step" bothers me. I want to say what the next step is. Can't control it now. Would have modified the magic but didn't have time. This was a placeholder. But I think I'll delete it for now
Thanks @Foxandxss. Will fix typos. I feel QuickStart is appropriately brief but let's find out what others think |
cd73078
to
987345f
Compare
* you aren't always online | ||
* the type support, refactoring, and code completion only work in your local IDE. | ||
|
||
# Setup a local develoment environment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will all devs know what an IDE is?
1. [install the `npm` packages](#install-node "What if you don't have node?") | ||
1. run it | ||
|
||
## What's different? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought at first this was telling me what's different between the zip and the git. May want to be more specific about what this is referring to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it
:marked | ||
## Prerequisites: _node_ and _npm_ | ||
|
||
Node.js and npm are essential tools in modern web development. Angular developers need them too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we say why we need node and npm in one sentence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In two short sentences, yes
987345f
to
3408b72
Compare
template: `<h1>Hello Angular!</h1>`, | ||
selector: 'my-app' | ||
}) | ||
export class AppComponent { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is extra, and if you truly want minimal, then I think removing the export
is smart. Otherwise, the the educated eye it will make them look for where it is used. This is not a tool to build on, right? If it was, we would make multiple files in the first place. I think, rather, that we want a simple starting point to explain A2 at the most simplest level. In that case, I think removing export works. Thoughts?
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
|
||
import { AppModule } from './app.module'; | ||
// #enddocregion import | ||
|
||
const platform = platformBrowserDynamic(); | ||
platform.bootstrapModule(AppModule); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not platformBrowserDynamic().bootstrapModule(AppModule);
?
less code, simpler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed platformBrowserDynamic().boot..
Dropped "!". Now just "Hello Angular"
template: `<h1>Hello Angular!</h1>`, | ||
selector: 'my-app' | ||
}) | ||
export class AppComponent { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
a6b2365
to
ea164e6
Compare
I like it. Was quite surprised at how small the new quickstart and the new setup chapter are combined. |
8ac346b
to
950d129
Compare
950d129
to
0c516a6
Compare
This is on hold until @IgorMinar can approve the code / workflow. It would be nice to post soon but not urgent. |
7fe1345
to
371fc82
Compare
1ad3b42
to
80a811a
Compare
…ule and boots it. For specific plunkers, e.g. "QuickStart (reboot edition)" PR angular#2762, that shouldn't have AppModule or main.ts Rescinds the automatic bootstrapping and exclusion of `main.ts` in angular#2786 and angular#2756 Only autoBootstraps when `window.autoBootstrap === true`.
<body> | ||
<my-app>Loading...</my-app> | ||
<my-app><!-- content managed by Angular --></my-app> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The content of the root component element is actually completely ignored, and so in that sense it would be more accurate to write "content is not managed by Angular" :). Maybe the intent was to write that the content generated by the Angular app gets inserted in the DOM below the root component element? So the remark could be changed to:
<my-app><!-- app generated content gets inserted here --></my-app>
Or
<my-app><!-- app generated content will appear here --></my-app>
If this is updated, then index.1.html
will need to be updated (actually, it would be nice to be able to get rid of index.1.html
altogether).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Done.
729ca3b
to
51a99ba
Compare
51a99ba
to
7d6ef70
Compare
7d6ef70
to
08d88b0
Compare
## Setup a local development environment | ||
The <live-example name=quickstart>QuickStart live-coding</live-example> example is an Angular _playground_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I think that quotes are needed, i.e.: <live-example name="quickstart">
.
72e3e92
to
8fd0235
Compare
4f227c4
to
ef05be8
Compare
ab6b667
to
01c62b6
Compare
01c62b6
to
11636f0
Compare
A complete overhaul of the QuickStart and setup process ... an overhaul intended to make discovering Angular quicker, easier, less frightening and more pleasant.
This PR was merged and then reversed for further review. Successor PR is #2854
Todos: