All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gwt.angular.client.Scope Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package com.google.gwt.angular.client;

/**
 * A scope object is essentially a Model object that can be injected and comes with some
 * methods builtin. The {@link NgInject} annotation here says that all subtypes of Scope will
 * still be named as '$scope'.
 */
@NgInject(name = "$scope",
    basetype = Scope.class)
public interface Scope> extends Model {
   void $watch(String expr, WatchFunction func);

  void $apply();

  void $apply(String expr);

  void $apply(Runnable runnable);

  void $onDestroy(Runnable runnable);

  void $on(String eventName, Runnable runnable);
}