<standarts>
	<select id="f_st" class='form-control'>
    <option each="{ item in select_items }" value="{ item.id }">{ item.name }</option>
  </select>
  <script>
    'use strict';
    this.on('mount', () => {
      this.select = this.root.firstChild
    })

    fetch(`./php_scripts/conclusion/get_standarts.php`)
    .then(res => res.json())
    .then(res => {
    	if (res) {
    		this.select_items = res
    		this.update()
    	}
    	else {
    		this.select_items = false
    		this.update()
    	}
    })
    .catch(err => console.log(err))
  </script>

</standarts>