commit | 837e0cc182d42dba1ea4f4a62ba52827940d29a3 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Wed Jan 25 11:37:34 2017 -0800 |
committer | Matteo Scandolo <matteo.scandolo@gmail.com> | Wed Jan 25 11:37:34 2017 -0800 |
tree | 62144e22478d63da86f4eb734d8f26e64ec15080 | |
parent | 17bf82458398b88b54c35124f818fc38febc45e3 [diff] |
Correctly parsing component attributes Change-Id: Idacb742e11b6d7349d981222eb0b63f79eb93410
diff --git a/src/app/core/services/helpers/component-injector.helpers.ts b/src/app/core/services/helpers/component-injector.helpers.ts index 8fd7a50..9b7d58f 100644 --- a/src/app/core/services/helpers/component-injector.helpers.ts +++ b/src/app/core/services/helpers/component-injector.helpers.ts
@@ -50,7 +50,7 @@ private stringifyAttributes(attributes: any): string { return _.reduce(Object.keys(attributes), (string: string, a: string) => { - string += `${a}="${a}"`; + string += `${this.camelToSnakeCase(a)}="${a}"`; return string; }, ''); }