This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<blockquote> | |
<b>{{review.stars}} star(s)</b> | |
{{review.body}} | |
<cite>- {{review.author}}</cite> | |
</blockquote> | |
<form class="form-horizontal"> | |
<div class="form-group"> | |
<label class="col-sm-1 control-label">Email</label> | |
<div class="col-sm-6"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.controller("ReviewController", function(){ | |
this.review = {}; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form class="form-horizontal" name="reviewForm" ng-controller="ReviewController as reviewCtrl"> | |
<blockquote> | |
<b>{{reviewCtrl.review.stars}} star(s)</b> | |
{{reviewCtrl.review.body}} | |
<cite>- {{reviewCtrl.review.author}}</cite> | |
</blockquote> | |
<div class="form-group"> | |
<label class="col-sm-1 control-label">Email</label> | |
<div class="col-sm-6"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form class="form-horizontal" name="reviewForm" | |
ng-controller="ReviewController as reviewCtrl" | |
ng-submit="reviewCtrl.addReview(product)"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.controller("ReviewController", function () { | |
this.review = {}; | |
this.addReview = function (product) { | |
product.reviews.push(this.review); | |
}; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.addReview = function(product) { | |
product.reviews.push(this.review); | |
this.review = {}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public V get(Object key) { | |
Node<K,V> e; | |
return (e = getNode(hash(key), key)) == null ? null : e.value; | |
} | |
static final int hash(Object key) { | |
int h; | |
return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<Peron> people = new ArrayList<>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Stream<T> extends BaseStream<T, Stream<T>> { | |
// more code here | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stream<Person> peopleStream = people.stream(); |