Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFR] Add label attribute on button directives #407

Merged
merged 3 commits into from
Apr 30, 2015
Merged

Conversation

RobinBressan
Copy link
Contributor

  • Add label attribute on buttons

maFilteredListButtonDirective already had a text attribute for that. I've renamed it to label for more consistency.

$scope.back = function () {
$window.history.back();
};
},
template:
'<a class="btn btn-default" ng-class="size ? \'btn-\' + size : \'\'" ng-click="back()">' +
'<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>&nbsp;Back' +
'<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>&nbsp;{{ label }}' +
Copy link
Member

Choose a reason for hiding this comment

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

Use {{ ::label }} to reduce overhead (one-time binding). Same for each directive in the PR.

@jeromemacias
Copy link
Contributor

Can you add an entry about label into the Readme ?
And a small note about the rename on maFilteredListButtonDirective in the changelog ?

fzaninotto added a commit that referenced this pull request Apr 30, 2015
[RFR] Add label attribute on button directives
@fzaninotto fzaninotto merged commit d0312db into master Apr 30, 2015
@fzaninotto fzaninotto deleted the button_label branch April 30, 2015 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants