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

fix(navbar): fixes navbar validation logic in angular 1.3 #8419

Closed
wants to merge 1 commit into from

Conversation

gmoothart
Copy link
Contributor

var hasNavClick = this.mdNavClick != null;
var hasNavHref = this.mdNavHref != null;
var hasNavSref = this.mdNavSref != null;
var hasNavClick = !!($element.attr('md-nav-click'));
Copy link
Member

Choose a reason for hiding this comment

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

There's $mdUtil.parseAttributeBoolean

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the actual values aren't boolean; I just need to know if they have been provided at all - so just checking for truthiness is ok.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants