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
canBeDeleted():boolean{ | |
return this.selectedSpot.cleanings.length == 0 && | |
this.selectedSpot.maintenances.length == 0 && | |
this.selectedSpot.payments.length == 0; | |
} |
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
// server.js | |
const express = require('express'); | |
const app = express(); | |
// Run the app by serving the static files | |
// in the dist directory | |
app.use(express.static(__dirname + '/dist')); | |
// Start the app by listening on the default | |
// Heroku port | |
app.listen(process.env.PORT || 5000); |
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
"scripts": { | |
"ng": "ng", | |
"start": "echo START && npm install && node server.js", | |
"build": "NODE_ENV=production && ng build --aot --prod && ", | |
"preinstall": "echo PREINSTALL", | |
"postinstall": "HOME=/ ./node_modules/@angular/cli/bin/ng build --prod --aot" | |
}, | |
"engines": { | |
"node": "9.4.0", | |
"npm": "5.6.0" |
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
<div class="columns"> | |
<div class="column is-two-thirds"> | |
<h2 class="subtitle"><i class="fas fa-car"></i> Spots</h2> | |
<div> | |
<app-spotlist [spots] = "spots"></app-spotlist> | |
</div> | |
</div> | |
<div class="column"> |
OlderNewer