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
    
  
  
    
  | // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console | 
  
    
      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
    
  
  
    
  | <form #supplier = "ngForm" class="container"> | |
| <label>Supplier name:</label> <input type="text" [(ngModel)]="supplier.name" name="name" id="name"> | |
| <label for="">Supplier phone:</label> <input type="text" [(ngModel)]="supplier.phone" name="phone" id="phone"> | |
| <button (click)="logSupplier(supplier)">Log supplier</button> | |
| <button (click)="newSupplier(supplier.value)">Create supplier</button> | |
| {{supplier.value | json}} | |
| </form> | |
| <br><br> | |
| <form #item = "ngForm"> | |
| <label for="">Item desc:</label> <input type="text" [(ngModel)]="item.description" name="description" > | 
  
    
      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, OnInit, Input, EventEmitter, Output, OnChanges, SimpleChanges } from '@angular/core'; | |
| import 'rxjs/add/operator/toPromise'; | |
| @Component({ | |
| selector: 'app-pagination', | |
| templateUrl: './pagination.component.html', | |
| styleUrls: ['./pagination.component.css'] | |
| }) | |
| export class PaginationComponent implements OnInit, OnChanges { | 
  
    
      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
    
  
  
    
  | To use the Spring Boot Maven Plugin simply include the appropriate XML in the plugins section of your pom.xml | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <!-- ... --> | |
| <build> | |
| <plugins> | |
| <plugin> | 
  
    
      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
    
  
  
    
  | 1. First your pom.xml must be similar to this with packaging as war and the repackage goal: | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.project</groupId> | |
| <artifactId>invoiceBackend</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | 
  
    
      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 { BrowserModule } from '@angular/platform-browser'; | |
| import { NgModule, APP_INITIALIZER } from '@angular/core'; | |
| import { HttpModule, Http } from '@angular/http'; | |
| import { FormsModule } from '@angular/forms'; | |
| import { AppComponent } from './app.component'; | |
| import { SupplierComponent } from './components/supplier/supplier.component'; | |
| import { ApiCallService } from './service/apicall.service'; | 
  
    
      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
    
  
  
    
  | package com.project.dto; | |
| import org.springframework.web.context.request.WebRequest; | |
| public class GeneralFilter { | |
| private Integer offset; | |
| private Integer limit; | 
  
    
      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
    
  
  
    
  | <html> | |
| <head> | |
| <title><?php echo "it works!"; ?></title> | |
| </head> | |
| <body> | |
| <?php | |
| spl_autoload_register(function ($class_name) { | |
| include $class_name . '.php'; | |
| }); | 
  
    
      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
    
  
  
    
  | <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: rober | |
| * Date: 11/11/2017 | |
| * Time: 7:56 PM | |
| */ | |
| namespace AppBundle\Controller; | |
  
    
      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
    
  
  
    
  | <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: rober | |
| * Date: 11/11/2017 | |
| * Time: 7:56 PM | |
| */ | |
| namespace AppBundle\Controller; | |
OlderNewer