h0ru5 / angulargwt Goto Github PK
View Code? Open in Web Editor NEWThis project forked from korzha/angulargwt
Angular integration for GWT
This project forked from korzha/angulargwt
Angular integration for GWT
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:
introduce archetypes and distinguish Module-Projects and App-Projects
the jsInterface in GWT 3 might be helpful there, as manually providing the APIs in GWT is error-prone boilerplate.
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)
This seems related to elemental running JSNI this[key]=Object(boolval) in GWT-2.6.0
Reproduce:
Add Todo - Watch scope with Batarang,
Todo gets added with correct title but with empty completed
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
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:
For this to work, the structure of a Directive should be changed to one Directive per class IMHO.
Hi Johannes,
any idea how to use angular.js' $q (async calls) in angulargwt?
Gruß, Christian.
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
}
}
Method names of services get minified. We need at least delegates with the original name.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.