Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Using constants rather than fields #15

Merged
merged 1 commit into from
Dec 10, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Chapter_03/lib/rating/rating_component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import 'package:angular/angular.dart';
*
* <rating max-rating="5" rating="mycontrol.rating">
*
* The compnoent's public fields are available for data binding from the
* The component's public fields are available for data binding from the
* component's view. Similarly, the component's public methods can be
* invoked from the component's view.
*/
Expand All @@ -37,10 +37,10 @@ import 'package:angular/angular.dart';
}
)
class RatingComponent {
String _starOnChar = "\u2605";
String _starOffChar = "\u2606";
String _starOnClass = "star-on";
String _starOffClass = "star-off";
static const String _starOnChar = "\u2605";
static const String _starOffChar = "\u2606";
static const String _starOnClass = "star-on";
static const String _starOffClass = "star-off";

List<int> stars = [];

Expand Down