Git Product home page Git Product logo

angulargwt's People

Contributors

cromwellian avatar h0ru5 avatar korzha avatar pungme avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

angulargwt's Issues

Interworking with js-based angularjs modules

This "issue" is a collection of thoughts, which should become own issues

So far, the workflow is forseen to contain only java-created or regular ng-modules wrapped in gwt.

There should be ways to better integrate gwt-created and regular angular modules.
Two ways of integration need to be reviewed:

AngularGWT modules in an AngularJS app (top-level-module is js)

  • One issue is gwt's async loading,
    52eec1f migitates this by a callback for deffered bootstrapping , needs examples
  • Another issue is method name mangeling when using GWT services in JS controllers

AngularJS modules in an AngularGWT app (top-level-module is GWT)

  • JsInterOp might be handy here

update doc

introduce archetypes and distinguish Module-Projects and App-Projects

angulargwt and RCP

Hi,
I have succesfully setup a Todo App with your angulargwt wrapper.

I have tryed to add a RCP communication for sending Todo's from the server side but that's always fail with an 404 error.

Is there something in angulargwt that prevent the standard RPC comunication to work ?

Thanks in avance for any help

Pierre

NB : I have setup my project adding manually 5 jars (angulargwt-1.1.4-SNAPSHOT.jar,com.google.common_1.0.0.201004262004.jar,gwt-elemental-2.6.0.jar,gwtquery-1.4.0.jar,json-20090211.jar)

Directive and required

for 1.1.3, the existing code for required-array was taken out.
This code is needed for inter-directive communication, as e.g. in form validation.

Instead of the javascript-esque way of parameter injection, I would go for a @required annotation, similiar to @injected

Should be easy to put back in, but needs an example and documentation then

Directives

As directives are the most complex part of Angular, there might be changes necessary to enable further features.

Refer to this talk for a good overview about features of directives in angular.

Roadmap:

  • scope isolation
  • attribute-binding
  • restrictions
  • templates
  • transclusion
  • compile function

For this to work, the structure of a Directive should be changed to one Directive per class IMHO.

$q for angulargwt

Hi Johannes,

any idea how to use angular.js' $q (async calls) in angulargwt?

Gruß, Christian.

JEE-Style injections

Injections in controllers are done by appending parameters to the onInit-Method, where the scope has to be the first parameter.

@NgInject(name = "MyCtrl")
public class MyController extends AngularController<MyScope> {
   private Location location;

  public void onInit(MyScope scope, Location location) {
      this.location=location;
   }

}

A cleaner way in my eyes would be to have the property injected by annotation an have to compiler write the onInit-Method:

@NgInject(name = "MyCtrl")
public class MyController extends AngularController<MyScope> {
  @NgInject("$location")  //the String arg could also be derived from the class
  public Location location; //injected by Framework

  @Override //this can be a regular (abstract) method now
  public void initialize(MyScope scope) {
      //use location
   }

}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.