Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

topherfangio
Copy link
Contributor

When used with ng-if or ng-repeat, the md-subheader was not able to properly
clone itself when creating a sticky because it only had a comment tag. Delay
initialization until after the ng-if/ng-repeat has finished before attempting
to create the clone.

fixes #2650, fixes #2980

@topherfangio topherfangio added the pr: merge ready This PR is ready for a caretaker to review label Aug 14, 2015
@topherfangio topherfangio added this to the 0.11.0 milestone Aug 14, 2015
@topherfangio topherfangio changed the title fix(subheader): Fix thrown error when using md-subheader with ng-if. fix(subheader): Fix thrown error when using md-subheader with ng-if and ng-repeat. Aug 15, 2015
@topherfangio topherfangio added needs: review This PR is waiting on review from the team and removed pr: merge ready This PR is ready for a caretaker to review labels Aug 17, 2015
@topherfangio topherfangio modified the milestones: 0.12.0, 0.11.0 Aug 17, 2015
@ThomasBurleson
Copy link
Contributor

@topherfangio - I see the references to the issues, but what was the issue/problem? How do the tests prove the change is valid?

@ThomasBurleson ThomasBurleson added in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs needs: work and removed needs: review This PR is waiting on review from the team labels Aug 18, 2015
…nd ng-repeat.

When used with `ng-if` or `ng-repeat`, the `md-subheader` was not able to properly
clone itself when creating a sticky because it only had a comment tag. Delay
initialization until after the `ng-if`/`ng-repeat` has finished before attempting
to create the clone.

fixes #2650, fixes #2980
@topherfangio topherfangio added pr: merge ready This PR is ready for a caretaker to review and removed needs: work in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs labels Aug 18, 2015
@topherfangio topherfangio deleted the fix-subheader-2650 branch August 19, 2015 17:12
kennethcachia pushed a commit to kennethcachia/material that referenced this pull request Sep 23, 2015
…nd ng-repeat.

When used with `ng-if` or `ng-repeat`, the `md-subheader` was not able to properly
clone itself when creating a sticky because it only had a comment tag. Delay
initialization until after the `ng-if`/`ng-repeat` has finished before attempting
to create the clone.

fixes angular#2650. fixes angular#2980. closes angular#4171.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

md-subheader bug with ng-repeat-start An md-subheader with ng-if throws an exception
2 participants