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

com.asayama.gwt.angular.client.NGScope Maven / Gradle / Ivy

package com.asayama.gwt.angular.client;

import com.asayama.gwt.angular.client.Angular.Bind;
import com.asayama.gwt.jsni.client.JSON;
import com.asayama.gwt.jsni.client.JSObject;

/**
 * https://github.com/kyoken74/gwt-angular/issues/6
 * @author kyoken74
 */
@Bind("$scope")
public class NGScope extends JSON {

	@SuppressWarnings("unchecked")
	public static NGScope create() {
		NGScope instance = JSObject.create();
		return instance;
	}
	
    protected NGScope() {
    }
    
    public final  T get(String key) {
        return this.getObject(key);
    }
    
    public final native void digest() /*-{
        if(!this.$$phase) {
          this.$digest();
        }
   }-*/;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy