jeff-jangular
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -237,2 +237,14 @@ /* | ||
function getDirectiveScope(model, directiveName, val) { | ||
var directiveNameCamel = dashToCamelCase(directiveName); | ||
model.$watch = function(name, fn) { | ||
if ( name === directiveNameCamel ) { | ||
fn(val); | ||
} else { | ||
fn(model[name]); | ||
} | ||
}; | ||
return model; | ||
} | ||
var jngFnStart = "__jng_fn_start__"; | ||
@@ -330,3 +342,3 @@ var jngFnEnd = "__jng_fn_end__"; | ||
// getDirectiveElement and getDirectiveAttrs wraps e/attrs, allows methods $observe, $set, etc | ||
angularTransforms[attrNormal](currentModel, getDirectiveElement(e), | ||
angularTransforms[attrNormal](getDirectiveScope(currentModel, attrNormal, evaled), getDirectiveElement(e), | ||
getDirectiveAttrs(e, attrNormal, evaled), evaled); | ||
@@ -333,0 +345,0 @@ } |
{ | ||
"name": "jeff-jangular", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"main": "lib/jangular.js", | ||
@@ -5,0 +5,0 @@ "description": "A plugin for jeff.js that allows you to render pages from server-side jeff templates that contain angular syntax.", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93491
836