blob: 283b54b964bff93298d2d75681e41fa6888a6057 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { Injectable } from '@angular/core';
import {Designer, DesignersConfiguration} from "app/models";
@Injectable()
export class DesignersService {
constructor() {
}
public getDesignerByStateUrl = (stateUrl: string) => {
let designerKey: any = _.findKey(DesignersConfiguration.designers, (designerConfig: Designer) =>{
return designerConfig.designerStateUrl === stateUrl;
});
return DesignersConfiguration.designers[designerKey];
}
}
|