Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

[WIP] update for AngularDart 1.x #64

Closed
wants to merge 10 commits into from
Closed

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Oct 14, 2014

@kwalrath could you please review when you are available.

/ref dart-archive/angular.dart.tutorial#131

@vicb
Copy link
Contributor Author

vicb commented Oct 14, 2014

/cc @rkirov

@vicb
Copy link
Contributor Author

vicb commented Oct 15, 2014

For some reason ' (single quote) sometimes renders as ' ie in the first chapter {{ 'foo' + 'bar' }} while it renders ok on later chapter (i.e. ch6) when I serve my local content.

Any idea what could be going wong ?

see is some code that imports Angular and starts your app.
<p>That code is minimal because our app is so simple. We start by defining a <code>Greeter</code>
class. As this class is set to be the root context type, the DI will create an instance of it
to serve as the context for the application - that is the <code>“name”</code> expression will
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the quotation marks around "name" are curly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kwalrath this is to be consistent with the remaining of the chapter (I copy-pasted them)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that now. Oh well. :)

@@ -245,21 +180,19 @@ to be evaluated:</p>

<hr class="spacer" />

<h4 id="how-is-a-component-different-from-a-controller">How is a component
different from a controller?</h4>
<h4 id="how-components-work">How components work?</h4>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How -> How do

@kwalrath
Copy link
Contributor

About "For some reason ' (single quote) sometimes renders as ' ie in the first chapter {{ 'foo' + 'bar' }}", perhaps that's because of the {%raw%} formatting?

@kwalrath
Copy link
Contributor

I don't know the technical content, so I confined myself to looking at language/grammar. I believe you also need to take another look at the flow from page to page, making sure the links and page names are correct.

Thanks very much for doing all this work!

@vicb
Copy link
Contributor Author

vicb commented Oct 16, 2014

About "For some reason ' (single quote) sometimes renders as ' ie in the first chapter {{ 'foo' + 'bar' }}", perhaps that's because of the {%raw%} formatting?

Unfortunately it's not due to {%raw%} even if the expression is modified to 'foo' + 'bar' (removing raw, endraw, {{ and }}) I still see the issue in chapter 1

@vicb
Copy link
Contributor Author

vicb commented Oct 16, 2014

@kwalrath thanks for your very useful review (as usual). I've integrated most of your feedback and verified that the index, next and previous links all work as expected.

We are still left with the single quote rendering issue, I'll try to investigate later today.

@vicb
Copy link
Contributor Author

vicb commented Oct 17, 2014

About the rendering issue: this might be a bug in my local version of jekyll. I hvae tried to isolate the issue but whether it is triggered or not depends on the context of the <script> tag (ie what is before & after). Can someone try to render the site somewhere online ?

@rkirov
Copy link

rkirov commented Nov 11, 2014

I just built the tutorial locally and I don't see any issues with the quotation marks. So I am going to squash and commit the PR. It is long overdue.

@rkirov
Copy link

rkirov commented Nov 11, 2014

Merged.

@rkirov rkirov closed this Nov 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants