Ember Set Body Class

screenshot of Ember Set Body Class

Fastboot-compatible, template-driven helper for setting classes on the body

Overview:

The ember-set-body-class addon allows users to set classes on the body tag in Ember.js applications. This feature enables the addition and removal of classes when specific templates are rendered or destroyed. The addon is compatible with Ember.js v3.10 or above, Ember CLI v2.13 or above, and requires Node.js v10 or above. It can be used in both browser and Fastboot environments, with Fastboot support requiring at least Fastboot 1.1.1.

Features:

  • Set classes on the body tag: Users can easily add classes to the body tag in their Ember.js application.
  • Dynamic class addition/removal: Classes can be added to the body tag when specific templates are rendered and removed when they are destroyed.
  • Compatibility: The addon is compatible with Ember.js v3.10 or above, Ember CLI v2.13 or above, and requires Node.js v10 or above. It can be used in both browser and Fastboot environments.

Summary:

The ember-set-body-class addon provides a simple solution for adding and removing classes on the body tag in Ember.js applications. By allowing users to dynamically set classes when specific templates are rendered, it offers more flexibility in styling and customization. The addon is compatible with the latest versions of Ember.js and Ember CLI, and can be used in both browser and Fastboot environments. Overall, this addon enhances the user experience by providing an easy-to-use mechanism for managing body tag classes in Ember.js applications.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.