Skip to content

Instantly share code, notes, and snippets.

View doblesesays's full-sized avatar
👋

Genessis Jimenez doblesesays

👋
  • Venezuela
View GitHub Profile
@doblesesays
doblesesays / ComponentName.component.ts
Created August 10, 2018 14:45
Service for get the current and previous URL on Angular
import { UrlRouteService } from '...';
...
constructor(
private urlRouteService: UrlRouteService
) {
this.urlRouteService.getPreviousUrl()
this.urlRouteService.getCurrentUrl()
}
var list = snapshot.val();
console.log("list.zipcodes " +list.zipcodes);
if(list.zipcodes.hasOwnProperty(dir)){
var result = list.zipcodes[dir];
caller.resolve({liquorEstore:result, address: dir.text});
}
else
caller.reject(dir);
}, function(errorObject) {
caller.reject(dir);
@doblesesays
doblesesays / CustomerEditor.java
Created December 16, 2016 15:04
The type.setInputPrompt("Select the type of user") and type.setNullSelectionAllowed(false); still gime me the problem
package com.vaadinspringjpa;
import com.vaadin.ui.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.vaadin.data.fieldgroup.BeanFieldGroup;
import com.vaadin.event.ShortcutAction;
import com.vaadin.server.FontAwesome;
import com.vaadin.spring.annotation.SpringComponent;
import com.vaadin.spring.annotation.UIScope;