This file contains hidden or 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
<template> | |
<slider :min="min" :max="max" :step="step" :initialValue="initialValue" @valueChanged="filterValueChanged"></slider> | |
</template> | |
<script> | |
import Vue from "vue"; | |
import Slider from './SliderComponent.vue'; | |
export default Vue.extend({ | |
name: 'slider-filter', | |
data() { | |
return { |
This file contains hidden or 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
<template> | |
<span class="slider"> | |
<input type="range" :min="min" :max="max" :step="step" :value="value" @input="onSliderChanging" @change="onSliderChanged" /> {{ value }} | |
</span> | |
</template> | |
<script> | |
export default { | |
name: 'slider', | |
props: { | |
min: { |
This file contains hidden or 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.vue | |
<template> | |
<div id="app"> | |
<div id="contentwrapper"> | |
<div id="contentcolumn"> | |
<div class="innertube"> | |
<munro-detail :selectedMunro="selectedMunro"></munro-detail> | |
</div> | |
</div> | |
</div> |
This file contains hidden or 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
<template> | |
<ag-grid-vue class="ag-theme-fresh grid" | |
:gridOptions="gridOptions" | |
:rowData="rowData" | |
:rowClicked="onRowClicked" | |
:rowDataChanged="onRowDataChanged"> | |
</ag-grid-vue> | |
</template> | |
<script> | |
import Vue from "vue"; |
This file contains hidden or 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
<template> | |
<div class="detail" v-if="selectedMunro"> | |
<table class="table"> | |
<tr> | |
<td colspan="2"> | |
{{selectedMunro.hillname}} | |
</td> | |
</tr> | |
<tr> | |
<td class="key"> |
This file contains hidden or 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
import Vue from "vue"; | |
import App from "./App"; | |
import "../node_modules/ag-grid/dist/styles/ag-grid.css"; | |
import "../node_modules/ag-grid/dist/styles/ag-theme-fresh.css"; |
This file contains hidden or 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
<template> | |
<div id="app"> | |
<munro-grid></munro-grid> | |
</div> | |
</template> | |
<script> | |
import MunroGrid from './components/MunroGrid'; | |
export default { | |
name: 'app', | |
data() { |
This file contains hidden or 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
<template> | |
<ag-grid-vue class="ag-theme-fresh grid" | |
:gridOptions="gridOptions" | |
:rowData="rowData" | |
:rowDataChanged="onRowDataChanged"> | |
</ag-grid-vue> | |
</template> | |
<script> | |
import Vue from "vue"; | |
import {AgGridVue} from "ag-grid-vue"; |
This file contains hidden or 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
import {Component} from "@angular/core"; | |
@Component({ | |
selector: 'my-app', | |
template: ` | |
Hello {{ name }} | |
<hr/> | |
<squared-value [value]="4"></squared-value> | |
<cubed-value [value]="4"></cubed-value> | |
<quadrupal-value [value]="4"></quadrupal-value> | |
<hr> |
This file contains hidden or 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
const path = require('path'); | |
const webpack = require('webpack'); | |
const helpers = require('./helpers'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const AotPlugin = require('@ngtools/webpack').AotPlugin; | |
const ENV = process.env.NODE_ENV = process.env.ENV = 'production'; | |
module.exports = { | |
entry: { | |
polyfills: './app/polyfills.ts', | |
vendor: './app/vendor-aot.ts', |