We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/WDI-HK-8/Formidable-web/blob/master/app/assets/templates/forms/update.html#L19
<i ng-if="category == 'text'" class="fa fa-font fa-fw contentIcon"></i> <i ng-if="category == 'textarea'" class="fa fa-text-height fa-fw contentIcon"></i> <i ng-if="category == 'dropdown'" class="fa fa-list-ul fa-fw contentIcon"></i> <i ng-if="category == 'checkbox'" class="fa fa-check-square-o fa-fw contentIcon"></i> <i ng-if="category == 'radio'" class="fa fa-dot-circle-o fa-fw contentIcon"></i> <i ng-if="category == 'description'" class="fa fa-align-left fa-fw contentIcon"></i>
You better use ng-class to save DOM:
ng-class
<i ng-class="{'fa-font': category == 'text', 'fa-text': category == 'textarea', 'fa-list-ul': category == 'dropdown'}" class="fa fa-fw contentIcon"></i>
The text was updated successfully, but these errors were encountered:
Great suggestion! There is definitely room for refactoring. Will work on this
Sorry, something went wrong.
No branches or pull requests
https://github.com/WDI-HK-8/Formidable-web/blob/master/app/assets/templates/forms/update.html#L19
You better use
ng-class
to save DOM:The text was updated successfully, but these errors were encountered: