Browse Source

Polishing

Matt Raible 7 years ago
parent
commit
2f01be4a76
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      README.md
  2. 2
    2
      client/src/pages/beer/beer.ts

+ 1
- 1
README.md View File

8
 
8
 
9
 To run the Spring Boot backend, cd into `server` and run `mvn spring-boot:run`.
9
 To run the Spring Boot backend, cd into `server` and run `mvn spring-boot:run`.
10
 
10
 
11
-To run the Ionic frontend, execute `npm install && ionic serve`. The aforementioned blog post shows you how to deploy this app to an emulator/device. 
11
+In another terminal, cd into `client` and `execute `npm install && ionic serve`. The aforementioned blog post shows you how to deploy this app to an emulator/device. 

+ 2
- 2
client/src/pages/beer/beer.ts View File

1
 import { Component } from '@angular/core';
1
 import { Component } from '@angular/core';
2
-import { NavController, NavParams, ViewController, ModalController, ToastController } from 'ionic-angular';
2
+import { NavController, NavParams, ModalController, ToastController } from 'ionic-angular';
3
 import { BeerService } from '../../providers/beer-service';
3
 import { BeerService } from '../../providers/beer-service';
4
 import { GiphyService } from '../../providers/giphy-service';
4
 import { GiphyService } from '../../providers/giphy-service';
5
 import { BeerModalPage } from './beer-modal';
5
 import { BeerModalPage } from './beer-modal';
39
         if (this.beers[i] === beer) {
39
         if (this.beers[i] === beer) {
40
           this.beers.splice(i, 1);
40
           this.beers.splice(i, 1);
41
           let toast = this.toastCtrl.create({
41
           let toast = this.toastCtrl.create({
42
-            message: 'Beer "' + beer.name + '" deleted successfully.',
42
+            message: 'Beer "' + beer.name + '" deleted.',
43
             duration: 2000,
43
             duration: 2000,
44
             position: 'top'
44
             position: 'top'
45
           });
45
           });