PageSourceSearch

http://wikigenomes.org/static/wiki/js/app/gene-form/gene-form.component.js

js wikigenomes.org collected 2026-09-25 23:42:28 UTC 787 bytes, 22 lines download raw bytes

1angular
2    .module('geneForm')
3    .component('geneForm', {
4        templateUrl: '/static/wiki/js/angular_templates/gene-form.html',
5        bindings: {
6            taxid: '<'
7        },
8        controller: function ($location, allOrgGenes) {
9            var ctrl = this;
10            ctrl.$onChanges = function (changesObj) {
11                if (changesObj.taxid) {
12                    allOrgGenes.getAllOrgGenes(ctrl.taxid)
13                        .then(function (data) {
14                            ctrl.currentAllGenes = data.data.results.bindings;
15                        });
16                }
17            };
18            ctrl.onSelect = function ($item) {
19                $location.path('/organism/' + ctrl.taxid + "/gene/" + $item.locusTag.value);
20            };
21        }
22    });

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.