regression: render.removeClass is not a function [5.0.0-beta.5] #18922
Closed
Description
I'm submitting a...
- Regression (a behavior that used to work and stopped working in a new release)
- Bug report
- Feature request
- Documentation issue or request
- Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
After upgrading to Angular 5.0.0-beta.5
, NgClass
directive in @angular/common
seems to throw.
Here's what the error looks like:
EditorViewComponent.html:3 ERROR TypeError: _this._renderer.removeClass is not a function
at common.es5.js:1872
at Array.forEach (<anonymous>)
at ClassDirective.webpackJsonp.../../../common/@angular/common.es5.js.NgClass._toggleClass (common.es5.js:1867)
at common.es5.js:1837
at Array.forEach (<anonymous>)
at ClassDirective.webpackJsonp.../../../common/@angular/common.es5.js.NgClass._applyInitialClasses (common.es5.js:1837)
at ClassDirective.set [as klass] (common.es5.js:1746)
at ClassDirective.set [as classBase] (class.js:126)
at updateProp (core.es5.js:10884)
at checkAndUpdateDirectiveInline (core.es5.js:10576)
Minimal reproduction of the problem with instructions
Upgrade to 5.0.0-beta.5
Environment
Angular version: 5.0.0-beta.5
Browser:
- Chrome (desktop) version 60.0.3112.90 (Official Build) (64-bit)
- Chrome (Android) version XX
- Chrome (iOS) version XX
- Firefox version XX
- Safari (desktop) version XX
- Safari (iOS) version XX
- IE version XX
- Edge version XX
Metadata
Assignees
Labels
No labels