Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

docs(guide/lifecycle-hooks): follow-up to #1654 #1768

Merged

Conversation

chalin
Copy link
Contributor

@chalin chalin commented Jun 28, 2016

Dart-side updates following #1654:

  • Updates to follow style guide
  • Enabled e2e tests (Add e2e tests for Developer Guide Dart examples #1523).
  • Fixes to ensure tests pass: in after_view_component.dart and
    after_content_component.dart
    • Changed test over comment field in template to be:

      *ngIf="comment.isNotEmpty"
  • Suites passed:
    • public/docs/_examples/lifecycle-hooks/dart
    • public/docs/_examples/lifecycle-hooks/ts

Mainly Dart-side review, following angular#1654:
- Updates to follow style guide
- Enabled e2e tests
- Fixes to ensure tests pass: in after_view_component.dart and
after_content_component.dart
  - Changed test over comment field in template to be:
*ngIf="comment.isNotEmpty"
- Suites passed:
  public/docs/_examples/lifecycle-hooks/dart
  public/docs/_examples/lifecycle-hooks/ts
@chalin
Copy link
Contributor Author

chalin commented Jun 28, 2016

@kwalrath : ready for review.

@Foxandxss Foxandxss added the dart label Jun 28, 2016
@@ -20,7 +20,7 @@ class ChildComponent {
<div>-- projected content begins --</div>
<ng-content></ng-content>
<div>-- projected content ends --</div>
<p *ngIf="comment != null" class="comment">{{comment}}</p>
<p *ngIf="comment.isNotEmpty" class="comment">{{comment}}</p>
Copy link
Contributor

@kwalrath kwalrath Jun 28, 2016

Choose a reason for hiding this comment

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

Should the . be ?.?
Actually, I guess ?. doesn't return a boolean. But should we do a null check?

@kwalrath
Copy link
Contributor

LGTM aside from wondering whether a null comment will break this.

@chalin
Copy link
Contributor Author

chalin commented Jun 28, 2016

By design, comment will never be null (if/once non-null types are implemented, the analyzer will be able confirm claims like these :).

@kwalrath kwalrath merged commit eda47f6 into angular:master Jun 28, 2016
@chalin chalin deleted the chalin-post-1654-lifecycle-hooks-0627 branch June 28, 2016 21:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants