From 35422616c39f25496ac6362c9323c16a7ce3ab99 Mon Sep 17 00:00:00 2001 From: ABitTooCalm Date: Tue, 25 Mar 2014 10:55:27 -0400 Subject: [PATCH] Update ngStyle.js Explaining that single quotes are needed for property/value pairs. Feel free to improve on this but it is something that is needed in the documentation. --- src/ng/directive/ngStyle.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ng/directive/ngStyle.js b/src/ng/directive/ngStyle.js index 3a627f8fa2fa..6d84ffd5ff8e 100644 --- a/src/ng/directive/ngStyle.js +++ b/src/ng/directive/ngStyle.js @@ -12,11 +12,15 @@ * @param {expression} ngStyle {@link guide/expression Expression} which evals to an * object whose keys are CSS style names and values are corresponding values for those CSS * keys. - * + * For some CSS elements, they must be surounded with single quotes('). The single quote must be used for AngularJS + * to recognize the property and the value. They should each be surrounded in there own set of quotes as shown in the + * example with 'background-color' below. + * * @example +
Sample Text