sw.outdent();
sw.println("});");
}
for (JMethod action : watchMethods(type)) {
NgWatch watchParams = action.getAnnotation(NgWatch.class);
String argString = ClassHelper.declareArgs(action);
sw.println("$scope.$watch('" + watchParams.value()
+ "', $entry(function(" + argString + ") {");
sw.indent();
sw.print(ClassHelper.isVoidMethod(action) ? "" : "return ");
sw.print("self." + action.getJsniSignature());
sw.println("(" + argString + ");");
sw.outdent();
sw.println("}), " + watchParams.objEq() + ");");
}
sw.outdent();
sw.println("});");