Skip to content

Instantly share code, notes, and snippets.

@johnnyasantoss
johnnyasantoss / TesteBoletoPV.cs
Last active March 6, 2017 21:43
Um exemplo de uma chamada na API do PagueVeloz
using Newtonsoft.Json;
using System;
using System.Net.Http;
using System.Text;
namespace Teste.PV
{
public class Teste
{
public static void Main(string[] args)
@johnnyasantoss
johnnyasantoss / debug-ui-view.js
Created February 9, 2017 11:50
Use this script to debug ui-view (works with minified files too!) Just paste it on console and hit enter.
jQuery(function ($) {
var view = $("[ui-view]").first();
if (!view) return;
var $rootScope = angular.element(view).injector().get('$rootScope');
$rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {
console.log('$stateChangeStart to ' + toState.name + '- fired when the transition begins. toState,toParams : \n', toState, toParams);
});