0x4a190770B6a6216DDA2e3B995ABcd07435923dc1
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
import {Router, NavigationStart, NavigationEnd, NavigationCancel, ActivatedRoute, ActivatedRouteSnapshot} from '@angular/router'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
title = environment.appName; | |
constructor(private _router: Router, |
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
0xe3769850FB30711508dB03DcbB00Ea9F07741d5f |
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
define(['angular', 'services'], function (angular) { | |
'use strict'; | |
return angular.module('myApp.controllers', ['myApp.services']) | |
.controller('IndexCtrl', ['$scope', 'googleService', function ($scope, googleService) { | |
$scope.login = function () { | |
googleService.login().then(function (data) { | |
// do something with returned data | |
console.log(data.email); |
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
<?php namespace App\Exceptions; | |
use Exception; | |
use Illuminate\Contracts\Validation\ValidationException; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; | |
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | |
class Handler extends ExceptionHandler | |
{ |
A Pen by Katakam pavan kumar on CodePen.