Package com.google.gwt.angular.client

Examples of com.google.gwt.angular.client.NgWatch


      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("});");
View Full Code Here

TOP

Related Classes of com.google.gwt.angular.client.NgWatch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.