Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

feat(alert): remove replace: true usage #5986

Closed
wants to merge 1 commit into from

Conversation

wesleycho
Copy link
Contributor

  • Remove replace: true usage

BREAKING CHANGE: This removes the replace: true usage, so this has an effect on how one uses the directive in the template - see documentation for reference

This assists in #5712.

- Remove `replace: true` usage

BREAKING CHANGE: This removes the `replace: true` usage, so this has an effect on how one uses the directive in the template - see documentation for reference
</script>

<uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</uib-alert>
<uib-alert template-url="alert.html">A happy alert!</uib-alert>
<div uib-alert ng-repeat="alert in alerts" ng-class="'alert-' + (alert.type || 'warning')" close="closeAlert($index)">{{alert.msg}}</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

You removed the type atteibute from the docs but still reference it here. Is that just because it's our model def and we can call it whatever we want?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep

@icfantv
Copy link
Contributor

icfantv commented Jun 12, 2016

LGTM

@wesleycho wesleycho closed this in 2458c28 Jun 12, 2016
@wesleycho wesleycho deleted the feat/alert-replace branch June 12, 2016 22:13
@aciccarello
Copy link

I wish the changelog comment had more information about what needed to be updated. For future reference, it wasn't clear to me what had changed so I missed the necessary changes to defining the alert type in my code. 🌹

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.

3 participants