Created
September 11, 2018 21:51
-
-
Save pYr0x/99d4a46593bce1b6d651d1ff25a52cce to your computer and use it in GitHub Desktop.
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
import {Component, DefineMap} from "can"; | |
import view from "./entnahmestelle-list.stache"; | |
const ViewModel = DefineMap.extend("ListVM", { | |
msg: { | |
default: "foo" | |
} | |
}); | |
Component.extend({ | |
tag: "x-entnahmestelle-list", | |
ViewModel, | |
view, | |
events: {} | |
}); |
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
<x-import> | |
<div class="container-fluid px-0"> | |
<div class="row"> | |
<div class="col-3"> | |
<x-entnahmestelle-list vm:msg:to="bar"></x-entnahmestelle-list> | |
</div> | |
<div class="col"> | |
{{bar}} | |
</div> | |
</div> | |
<div class="form-group row justify-content-end"> | |
<div class="col-4 text-right form-controls"> | |
<button type="submit" class="btn btn-success" role="button"><i class="fa fa-save"></i> Speichern</button> | |
<button class="btn btn-secondary" role="back">Abbrechen</button> | |
</div> | |
</div> | |
</x-import> |
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
import {Component, DefineMap} from "can"; | |
import "~/components/entnahmestelle-list/"; | |
const ViewModel = DefineMap.extend("ImportVM", { | |
bar: "string" | |
}); | |
Component.extend({ | |
tag: "x-import", | |
ViewModel, | |
view: `<content/>`, | |
events: {} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment