type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
public getPort() { return this.port; }
TheArmagan/JSPrismarine
src/config/index.ts
TypeScript
MethodDeclaration
public getServerIp() { return this.serverIp; }
TheArmagan/JSPrismarine
src/config/index.ts
TypeScript
MethodDeclaration
public getLevelName() { return this.levelName; }
TheArmagan/JSPrismarine
src/config/index.ts
TypeScript
MethodDeclaration
public getWorlds() { return this.worlds; }
TheArmagan/JSPrismarine
src/config/index.ts
TypeScript
MethodDeclaration
public getMaxPlayers() { return this.maxPlayers; }
TheArmagan/JSPrismarine
src/config/index.ts
TypeScript
MethodDeclaration
public getGamemode() { return this.gamemode; }
TheArmagan/JSPrismarine
src/config/index.ts
TypeScript
MethodDeclaration
public getMotd() { return this.motd; }
TheArmagan/JSPrismarine
src/config/index.ts
TypeScript
MethodDeclaration
public getViewDistance() { return this.viewDistance; }
TheArmagan/JSPrismarine
src/config/index.ts
TypeScript
MethodDeclaration
public getEnableQuery() { return this.enableQuery; }
TheArmagan/JSPrismarine
src/config/index.ts
TypeScript
MethodDeclaration
public getQueryPort() { return this.queryPort; }
TheArmagan/JSPrismarine
src/config/index.ts
TypeScript
ArrowFunction
entries => { for (let entry of entries) { let newViewport = getViewport(entry.contentRect.width * 2) // Data bite is usually presented as small, so we scale it up for responsive calculations setCurrentViewport(newViewport) } }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(newConfig) => { // Deeper copy Object.keys(defaults).forEach(key => { if (newConfig[key] && 'object' === typeof newConfig[key] && !Array.isArray(newConfig[key])) { newConfig[key] = { ...defaults[key], ...newConfig[key] } } }); //Enforce default values that need to be calculated at...
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
key => { if (newConfig[key] && 'object' === typeof newConfig[key] && !Array.isArray(newConfig[key])) { newConfig[key] = { ...defaults[key], ...newConfig[key] } } }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
async () => { let response = configObj || await (await fetch(configUrl)).json(); // If data is included through a URL, fetch that and store let responseData = response.data ?? {} if(response.dataUrl) { const dataString = await fetch(response.dataUrl); responseData = await dataString.json(...
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
() => { //If either the column or function aren't set, do not calculate if (!dataColumn || !dataFunction) { return ''; } const getColumnSum = (arr) => { const sum = arr.reduce((sum, x) => sum + x); return applyPrecision(sum); } const getColumnMean = (arr) => { const m...
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(arr) => { const sum = arr.reduce((sum, x) => sum + x); return applyPrecision(sum); }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(sum, x) => sum + x
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(arr) => { const mean = arr.length > 1 ? arr.reduce((a, b) => a + b) / arr.length : arr[0]; return applyPrecision(mean); }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(arr) => { let freq = {} let max = -Infinity for(let i = 0; i < arr.length; i++) { if (freq[arr[i]]) { freq[arr[i]] += 1 } else { freq[arr[i]] = 1 } if (freq[arr[i]] > max) { max = freq[arr[i]] } } let res = [] ...
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
arr => { const mid = Math.floor(arr.length / 2), nums = [...arr].sort((a, b) => a - b); const value = arr.length % 2 !== 0 ? nums[mid] : (nums[mid - 1] + nums[mid]) / 2; return applyPrecision(value); }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(value) => { if ('' !== config.dataFormat.roundToPlace && !isNaN(config.dataFormat.roundToPlace) && Number(config.dataFormat.roundToPlace)>-1) { value = Number(value).toFixed(Number(config.dataFormat.roundToPlace)); } return value; }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(filter) => { if ( filter.columnName && filter.columnValue ) { filteredData = filteredData.filter(function (e) { return e[filter.columnName] === filter.columnValue; }); } else { return false; } }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
row => { let value = numberFromString(row[dataColumn]) if(typeof value === 'number') numericalData.push(value) }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
node => { if (node !== null) { resizeObserver.observe(node); } }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
() => { loadConfig(); }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
() => { loadConfig(); }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
() => { let operators = { '<': (a, b) => { return a < b }, '>': (a, b) => { return a > b }, '<=': (a, b) => { return a <= b }, '>=': (a, b) => { return a >= b }, '≠': (a, b) => { return a !== b }, '=': (a, b) => { return a === b } } let imageSource = imageData.url le...
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(a, b) => { return a < b }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(a, b) => { return a > b }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(a, b) => { return a <= b }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(a, b) => { return a >= b }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(a, b) => { return a !== b }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(a, b) => { return a === b }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
ArrowFunction
(option, index) => { let argumentArr = option.arguments let { source, alt } = option if (false === argumentActive && argumentArr.length > 0) { if (argumentArr[0].operator.length > 0 && argumentArr[0].threshold.length > 0) { if (operators[argumentArr[0].operator](targetVal...
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
InterfaceDeclaration
interface keyable { [key: string]: any }
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
MethodDeclaration
parse(title)
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
MethodDeclaration
calculateDataBite()
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
MethodDeclaration
parse(subtext)
LaudateCorpus1/cdc-open-viz
packages/data-bite/src/CdcDataBite.tsx
TypeScript
FunctionDeclaration
function debug(...args: any[]) { if (DEBUG_LOG) { console.log(...args); } }
kyle-wilson/chrome
src/content/transformer.ts
TypeScript
ArrowFunction
(anchor: Node) => { if (shouldBreak) { return; } for (let i = 0; i < anchor.childNodes.length; i++) { if (shouldBreak) { break; } const node = anchor.childNodes.item(i); let lastElement = node === lastNode; // or if we're the last sibling i...
kyle-wilson/chrome
src/content/transformer.ts
TypeScript
MethodDeclaration
// Given a node, traverse up the tree to find a contenteditable node, if exists private static _getAnchor(target: HTMLElement | Text): Node | null { let editable; if (target instanceof Text) { editable = target.parentElement!; } else { editable = target; } while (editable) { if (e...
kyle-wilson/chrome
src/content/transformer.ts
TypeScript
MethodDeclaration
// Given a node, its offset from the start, and a cursorStart and cursorEnd, // set the cursor in the node. private static _trySetCursor( node: Node, startOffset: number, cursorStart?: number, cursorEnd?: number ) { let shouldBreak = false; debug( "Maybe setting cursor: ", node.no...
kyle-wilson/chrome
src/content/transformer.ts
TypeScript
MethodDeclaration
private static _isBlockElement(node: Node): boolean { return ["P", "DIV"].includes((node as HTMLElement).tagName); }
kyle-wilson/chrome
src/content/transformer.ts
TypeScript
MethodDeclaration
private static _isManualLineBreak(node: Node): boolean { return ["BR"].includes((node as HTMLElement).tagName); }
kyle-wilson/chrome
src/content/transformer.ts
TypeScript
MethodDeclaration
// Given a target element and optional selection range, returns the text // content for the parent contenteditable (anchor). If optional selection // range, stops returning at the start of the cursor. private static _getTextContent( target: HTMLElement | Text, range?: Range, cursorStart?: number, cursor...
kyle-wilson/chrome
src/content/transformer.ts
TypeScript
MethodDeclaration
static setCursor(offset: number, cursorEnd?: number) { const selected = window.getSelection(); if (selected === null || selected.rangeCount < 1) { return; } const range = selected.getRangeAt(0); if (range === null) { return; } const target = range.startContainer; if (!(tar...
kyle-wilson/chrome
src/content/transformer.ts
TypeScript
MethodDeclaration
// Returns the cursor position as seen by the user. static getCursor(): number { const selected = window.getSelection(); if (selected === null || selected.rangeCount < 1) { return 0; } const range = selected.getRangeAt(0); if (range === null) { return 0; } const target = range....
kyle-wilson/chrome
src/content/transformer.ts
TypeScript
MethodDeclaration
// Returns the source text as seen by the user. We can't use the native browser // textContent because it doesn't generate line breaks. static getSource(target: HTMLElement): string | null { return Transformer._getTextContent(target); }
kyle-wilson/chrome
src/content/transformer.ts
TypeScript
ArrowFunction
(session) => session.connection?.id === connectionId
animo/aries-framework-javascript
packages/core/src/agent/TransportService.ts
TypeScript
ArrowFunction
(s) => s.serviceEndpoint !== DID_COMM_TRANSPORT_QUEUE
animo/aries-framework-javascript
packages/core/src/agent/TransportService.ts
TypeScript
ClassDeclaration
@scoped(Lifecycle.ContainerScoped) export class TransportService { private transportSessionTable: TransportSessionTable = {} public saveSession(session: TransportSession) { this.transportSessionTable[session.id] = session } public findSessionByConnectionId(connectionId: string) { return Object.values...
animo/aries-framework-javascript
packages/core/src/agent/TransportService.ts
TypeScript
InterfaceDeclaration
interface TransportSessionTable { [sessionId: string]: TransportSession }
animo/aries-framework-javascript
packages/core/src/agent/TransportService.ts
TypeScript
InterfaceDeclaration
export interface TransportSession { id: string type: string keys?: EnvelopeKeys inboundMessage?: AgentMessage connection?: ConnectionRecord send(encryptedMessage: EncryptedMessage): Promise<void> }
animo/aries-framework-javascript
packages/core/src/agent/TransportService.ts
TypeScript
MethodDeclaration
public saveSession(session: TransportSession) { this.transportSessionTable[session.id] = session }
animo/aries-framework-javascript
packages/core/src/agent/TransportService.ts
TypeScript
MethodDeclaration
public findSessionByConnectionId(connectionId: string) { return Object.values(this.transportSessionTable).find((session) => session.connection?.id === connectionId) }
animo/aries-framework-javascript
packages/core/src/agent/TransportService.ts
TypeScript
MethodDeclaration
public hasInboundEndpoint(didDoc: DidDoc): boolean { return Boolean(didDoc.didCommServices.find((s) => s.serviceEndpoint !== DID_COMM_TRANSPORT_QUEUE)) }
animo/aries-framework-javascript
packages/core/src/agent/TransportService.ts
TypeScript
MethodDeclaration
public findSessionById(sessionId: string) { return this.transportSessionTable[sessionId] }
animo/aries-framework-javascript
packages/core/src/agent/TransportService.ts
TypeScript
MethodDeclaration
public removeSession(session: TransportSession) { delete this.transportSessionTable[session.id] }
animo/aries-framework-javascript
packages/core/src/agent/TransportService.ts
TypeScript
MethodDeclaration
public findDidCommServices(connection: ConnectionRecord): Array<DidCommService | IndyAgentService> { if (connection.theirDidDoc) { return connection.theirDidDoc.didCommServices } if (connection.role === ConnectionRole.Invitee && connection.invitation) { const { invitation } = connection ...
animo/aries-framework-javascript
packages/core/src/agent/TransportService.ts
TypeScript
MethodDeclaration
get(key: string) { return this.data[key]; }
piex/react-ioc
src/ioc.ts
TypeScript
MethodDeclaration
register(key: string, value) { this.data[key] = value; }
piex/react-ioc
src/ioc.ts
TypeScript
ArrowFunction
async (account: string) => { const masterChefAdress = getMasterChefAddress() const calls = farmsConfig.map((farm) => { const lpContractAddress = farm.isTokenOnly ? farm.tokenAddresses[CHAIN_ID] : farm.lpAddresses[CHAIN_ID] return { address: lpContractAddress, name: 'allowance', params: [account, masterChe...
bestboom/tok-front
src/state/farms/fetchFarmUser.ts
TypeScript
ArrowFunction
(farm) => { const lpContractAddress = farm.isTokenOnly ? farm.tokenAddresses[CHAIN_ID] : farm.lpAddresses[CHAIN_ID] return { address: lpContractAddress, name: 'allowance', params: [account, masterChefAdress] } }
bestboom/tok-front
src/state/farms/fetchFarmUser.ts
TypeScript
ArrowFunction
(lpBalance) => { return new BigNumber(lpBalance).toJSON() }
bestboom/tok-front
src/state/farms/fetchFarmUser.ts
TypeScript
ArrowFunction
async (account: string) => { const calls = farmsConfig.map((farm) => { const lpContractAddress = farm.isTokenOnly ? farm.tokenAddresses[CHAIN_ID] : farm.lpAddresses[CHAIN_ID] return { address: lpContractAddress, name: 'balanceOf', params: [account], } }) const rawTokenBalances = aw...
bestboom/tok-front
src/state/farms/fetchFarmUser.ts
TypeScript
ArrowFunction
(farm) => { const lpContractAddress = farm.isTokenOnly ? farm.tokenAddresses[CHAIN_ID] : farm.lpAddresses[CHAIN_ID] return { address: lpContractAddress, name: 'balanceOf', params: [account], } }
bestboom/tok-front
src/state/farms/fetchFarmUser.ts
TypeScript
ArrowFunction
(tokenBalance) => { return new BigNumber(tokenBalance).toJSON() }
bestboom/tok-front
src/state/farms/fetchFarmUser.ts
TypeScript
ArrowFunction
async (account: string) => { const masterChefAdress = getMasterChefAddress() const calls = farmsConfig.map((farm) => { return { address: masterChefAdress, name: 'userInfo', params: [farm.pid, account], } }) const rawStakedBalances = await multicall(masterchefABI, calls) const pars...
bestboom/tok-front
src/state/farms/fetchFarmUser.ts
TypeScript
ArrowFunction
(farm) => { return { address: masterChefAdress, name: 'userInfo', params: [farm.pid, account], } }
bestboom/tok-front
src/state/farms/fetchFarmUser.ts
TypeScript
ArrowFunction
(stakedBalance) => { return new BigNumber(stakedBalance[0]._hex).toJSON() }
bestboom/tok-front
src/state/farms/fetchFarmUser.ts
TypeScript
ArrowFunction
async (account: string) => { const masterChefAdress = getMasterChefAddress() const calls = farmsConfig.map((farm) => { return { address: masterChefAdress, name: 'pendingPeach', params: [farm.pid, account], } }) const rawEarnings = await multicall(masterchefABI, calls) const parsed...
bestboom/tok-front
src/state/farms/fetchFarmUser.ts
TypeScript
ArrowFunction
(farm) => { return { address: masterChefAdress, name: 'pendingPeach', params: [farm.pid, account], } }
bestboom/tok-front
src/state/farms/fetchFarmUser.ts
TypeScript
ArrowFunction
(earnings) => { return new BigNumber(earnings).toJSON() }
bestboom/tok-front
src/state/farms/fetchFarmUser.ts
TypeScript
ArrowFunction
heroes => (this.heroes = heroes)
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
ArrowFunction
hero => this.heroes.push(hero)
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
ArrowFunction
h => h !== hero
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
ArrowFunction
hero => { // replace the hero in the heroes list with update from server const ix = hero ? this.heroes.findIndex(h => h.id === hero.id) : -1; if (ix > -1) { this.heroes[ix] = hero; } }
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
ArrowFunction
h => h.id === hero.id
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
ClassDeclaration
@Component({ selector: 'app-heroes', templateUrl: './heroes.component.html', providers: [HeroesService], styleUrls: ['./heroes.component.css'] }) export class HeroesComponent implements OnInit { heroes: Hero[] = []; editHero: Hero | undefined; // the hero currently being edited heroName = ''; construc...
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
MethodDeclaration
ngOnInit() { this.getHeroes(); }
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
MethodDeclaration
getHeroes(): void { this.heroesService.getHeroes() .subscribe(heroes => (this.heroes = heroes)); }
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
MethodDeclaration
add(name: string): void { this.editHero = undefined; name = name.trim(); if (!name) { return; } // The server will generate the id for this new hero const newHero: Hero = { name } as Hero; // #docregion add-hero-subscribe this.heroesService .addHero(newHero) .subscrib...
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
MethodDeclaration
delete(hero: Hero): void { this.heroes = this.heroes.filter(h => h !== hero); // #docregion delete-hero-subscribe this.heroesService .deleteHero(hero.id) .subscribe(); // #enddocregion delete-hero-subscribe /* // #docregion delete-hero-no-subscribe // oops ... subscribe() is mis...
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
MethodDeclaration
edit(heroName: string) { this.update(heroName); this.editHero = undefined; }
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
MethodDeclaration
search(searchTerm: string) { this.editHero = undefined; if (searchTerm) { this.heroesService .searchHeroes(searchTerm) .subscribe(heroes => (this.heroes = heroes)); } else { this.getHeroes(); } }
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
MethodDeclaration
update(heroName: string) { if (heroName && this.editHero && this.editHero.name !== heroName) { this.heroesService .updateHero({...this.editHero, name: heroName}) .subscribe(hero => { // replace the hero in the heroes list with update from server const ix = hero ? this.heroes.f...
10088/angular
aio/content/examples/http/src/app/heroes/heroes.component.ts
TypeScript
ClassDeclaration
@injectable() export class ArticleTagsRoute extends BaseRoute { public readonly findRoute: string = 'article-tags/{?searchQuery,page,rpp,sort,embed,fields}'; public readonly getRoute: string = 'article-tags/{id}/{?embed,fields}'; public readonly updateRoute: string = 'article-tags/{id}'; public rea...
Baasic/baasic-sdk-javascript
src/modules/article/ArticleTagsRoute.ts
TypeScript
MethodDeclaration
/** * Parses find article tags route which can be expanded with additional options. Supported items are: * - `searchQuery` - A string value used to identify article tags using the phrase search; multiple tag keywords must be comma separated. * - `page` - A value used to set the page number...
Baasic/baasic-sdk-javascript
src/modules/article/ArticleTagsRoute.ts
TypeScript
MethodDeclaration
/** * Parses get article tag route which must be expanded with the Id of the previously created article tag resource in the system. Additional expand supported items are: * - `embed` - Comma separated list of resources to be contained within the current representation. * @metho...
Baasic/baasic-sdk-javascript
src/modules/article/ArticleTagsRoute.ts
TypeScript
MethodDeclaration
/** * Parses get article tag route which must be expanded with the Id of the previously created article tag resource in the system. Additional expand supported items are: * - `embed` - Comma separated list of resources to be contained within the current representation. * @metho...
Baasic/baasic-sdk-javascript
src/modules/article/ArticleTagsRoute.ts
TypeScript
MethodDeclaration
/** * Parses get article tag route which must be expanded with the Id of the previously created article tag resource in the system. Additional expand supported items are: * - `embed` - Comma separated list of resources to be contained within the current representation. * @metho...
Baasic/baasic-sdk-javascript
src/modules/article/ArticleTagsRoute.ts
TypeScript
ArrowFunction
(state: CompanyStateInterface) => state.currentlyViewedCompany
FurnishNG/agboho
frontend/src/store/companies/getters.ts
TypeScript
ArrowFunction
(state: CompanyStateInterface) => state.companySizesForSelect
FurnishNG/agboho
frontend/src/store/companies/getters.ts
TypeScript
ArrowFunction
(state): string => { const logoBase = state.currentlyViewedCompany?.company_logo; return logoBase ? new MultiFormatPicture(logoBase).avatarImageUrl : ''; }
FurnishNG/agboho
frontend/src/store/companies/getters.ts
TypeScript
TypeAliasDeclaration
export type CompanyGetterInterface = GetterTree< CompanyStateInterface, StateInterface >;
FurnishNG/agboho
frontend/src/store/companies/getters.ts
TypeScript
FunctionDeclaration
export async function resumeAfterCancellation(url: string): Promise<any> { let result: any = undefined; const scope = new CancellationScope({ cancellable: false }); const promise = scope.run(() => httpGetJSON(url)); try { result = await Promise.race([scope.cancelRequested, promise]); } catch (err) { ...
JoshuaKGoldberg/sdk-typescript
packages/test/src/workflows/cancel-requested-with-non-cancellable.ts
TypeScript
ArrowFunction
() => httpGetJSON(url)
JoshuaKGoldberg/sdk-typescript
packages/test/src/workflows/cancel-requested-with-non-cancellable.ts
TypeScript
InterfaceDeclaration
export interface IValidateIssue { category: IValidateIssueCategory; id: string; message: string; }
alexanderkasten/dfsdf
src/contracts/bpmnmodeler/IValidateIssue.ts
TypeScript
ClassDeclaration
@Injectable() export class CategoryService { public URI:string ="category"; constructor(private _shareService:ShareService ) { } public getCategory(searchname:string ,skip:number, pagesize:number):Observable<any[]> { return this._shareService.httpGet(Config.URL+this.URI+"/"+searchname+"/"+skip+"/"+p...
xuantruong050192/ATNB_vs2
src/app/service/category.service.ts
TypeScript
MethodDeclaration
public getCategory(searchname:string ,skip:number, pagesize:number):Observable<any[]> { return this._shareService.httpGet(Config.URL+this.URI+"/"+searchname+"/"+skip+"/"+pagesize); }
xuantruong050192/ATNB_vs2
src/app/service/category.service.ts
TypeScript