diff --git a/client/item/src/botanical/item-botanical.html b/client/item/src/botanical/item-botanical.html
index 36cd49f8f..de6b31787 100644
--- a/client/item/src/botanical/item-botanical.html
+++ b/client/item/src/botanical/item-botanical.html
@@ -1,5 +1,41 @@
-
-
- Botanical
-
-
\ No newline at end of file
+
+
+
+
+
\ No newline at end of file
diff --git a/client/item/src/botanical/item-botanical.js b/client/item/src/botanical/item-botanical.js
index 8bd744e53..03020648b 100644
--- a/client/item/src/botanical/item-botanical.js
+++ b/client/item/src/botanical/item-botanical.js
@@ -1,5 +1,30 @@
import ngModule from '../module';
+class ItemBotanical {
+ constructor($http, $state) {
+ this.$http = $http;
+ this.botanical = {
+ itemFk: $state.params.id
+ };
+ }
+ $onInit() {
+ let filter = {
+ where: {
+ itemFk: this.botanical.itemFk
+ },
+ include: [{relation: 'genus'}, {relation: 'specie'}]
+ };
+ this.$http.get(`/item/api/ItemBotanicals?filter=${JSON.stringify(filter)}`)
+ .then(res => {
+ if (res.data) {
+ Object.assign(this.botanical, res.data);
+ }
+ });
+ }
+}
+ItemBotanical.$inject = ['$http', '$state'];
+
ngModule.component('vnItemBotanical', {
- template: require('./item-botanical.html')
+ template: require('./item-botanical.html'),
+ controller: ItemBotanical
});