This codelab is now maintained by the Angular Team:
dartlangfr / ng-darrrt-codelab Goto Github PK
View Code? Open in Web Editor NEWLearn how to build a webapp with Angular.Dart in one hour.
Learn how to build a webapp with Angular.Dart in one hour.
This codelab is now maintained by the Angular Team:
Tracking bug. Related to https://code.google.com/p/dart/issues/detail?id=16462
Update links to the steps
Create an anonymous feedback form
Move "What is Angular?" section in step-1 Run the skeleton app
From: https://code.google.com/p/dart/issues/detail?id=16403
(blois)- appears that the ShadowDOM polyfill is not included by default.
Reported by alexandre.ardhuin, Yesterday (21 hours ago)
Trying to run https://github.com/dartlangfr/ng-darrrt-codelab/tree/master/web/4-extractcomponent/piratebadge.html in Js I get the following error on Firefox 26.0 / Linux:
Error: TypeError: receiver.webkitCreateShadowRoot is undefined
The problem appears when I use a @NgComponent.
I'm on Dart Editor version 1.2.0.dev_01_00 (DEV) and you can find my pubspec.lock attached.
Would it be possible to retire this site, and instead refer people to https://github.com/angular/ng-darrrt-codelab/blob/master/README.md#code-lab-angulardart?
I apologize for kind of sideswiping your site. (We didn't anticipate that, but we were in such a hurry that we had to fork.) You are, of course, very welcome to contribute to the angular fork of this site, although please wait for Shailen's redo of the samples to land. (You can see his changes here: https://github.com/angular/ng-darrrt-codelab/tree/revamp.)
Please let me know how you'd like to proceed. Also... Did you get any interesting results from your survey? I'd love to know your traffic #s too. (I don't have access to https://github.com/dartlangfr/ng-darrrt-codelab/graphs/traffic.)
Thanks very much for all your help with introducing developers to AngularDart!
All path must be relative to working directory.
The angular tutorial contains some tests. What do you think about adding some tests to this codelab ?
Renumber 3a
to 3
, 3b
to 4
and 4
to 5
Hi,
To get the code size down, please add this to all of your entry points:
@MirrorsUsed(override: '*')
import 'dart:mirrors';
We will go do the same for our tutorial.
(This should go whereever main() is)
Thanks!
Step 7-directive: the RockAndRoll directive
As in darrrt codelab, the result of a step correspond to the directory with the same number:
There is no development in step 1, just review code and launch the app. We could copy/paste or reference the step 1 of darrrt codelab, and add the review of angular dependency in pubspec.yaml for our step 1.
In piratebadge.html
: ng-disabled="ctrl.name.trim().isNotEmpty"
Can you add a final step for how to build the app and open in Firefox, safari, etc ?
Thanks!
Copy/Paste of Step 1: Run the skeleton app
And explanation of angular dependency in pubspec.yaml
Can we simplify and not use getters and setters from PirateName to the controller fields?
class BadgesController {
// ...
String get name => _name._firstName;
set name(String value) {
_name = new PirateName(firstName: value);
}
String get pirateName => _name.pirateName;
// ...
}
could just be:
class BadgesController {
PirateName pirateName;
}
The version in the code lab looks too verbose :(
Thoughts?
I have a suggestion, just for clarity sake (particularly anyone viewing this without a presenter). Particularly in Step 4, consider rename the component's scope to cmp (short for component) instead of using ctrl (controller) to make it clear that the moustache bindings in badge_component.html are referring to the BadgeComponent class and not the BadgesController.
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.