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
import { Injectable } from "@angular/core"; | |
import { Store } from "@ngrx/store"; | |
import { StoreService } from "./store-service.ts" | |
import { myReducer, IMyState, } from "./reducer.ts" | |
@Injectable() | |
export class SomeService { | |
constructor(private store: Store<any>, storeService: StoreService) { | |
// Add the service specific reducers to the set of existing reducers. | |
storeService.addReducers({myReducer}); |
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
{ | |
"version": "0.1.0", | |
"command": "gulp", | |
"isShellCommand": true, | |
"args": [ | |
"--no-color" | |
], | |
"tasks": [ | |
{ | |
"taskName": "default", |
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
public class AreaEntryPointResolver : IEntryPointResolver | |
{ | |
public string Resolve(ViewContext viewContext, string entryPointRoot) | |
{ | |
if (viewContext.RouteData.DataTokens["area"] == null) | |
return null; | |
var area = viewContext.RouteData.DataTokens["area"].ToString(); | |
var controller = viewContext.Controller.ValueProvider.GetValue("controller").RawValue as string; | |
var action = viewContext.Controller.ValueProvider.GetValue("action").RawValue as string; |