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
// Type definitions for Angular JS 1.5 | |
// Project: http://angularjs.org | |
// Definitions by: Diego Vilar <http://github.com/diegovilar> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
/// <reference types="jquery" /> | |
declare var angular: angular.IAngularStatic; | |
// Support for painless dependency injection |
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
class TypeOne { | |
public one | |
private two | |
private three | |
} | |
class TypeTwo { | |
public one | |
} |
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
export function parseName(path) { | |
const name = path.toLowerCase() | |
// Remove starting ./ | |
.replace(/^\.\//, '') | |
// Parameters | |
.replace(/\/_(\w+)(\/|\.vue$)/, '/:$1/') | |
// Remove file extension and 'index' | |
.replace(/(index)?\.vue$/, '') | |
// Remove trailing '/' | |
.replace(/\/$/, ''); |
OlderNewer