我只是使用他们的cli设置角度为2的基本项目。当我做一个节点安装 - 为材料设计项目保存时,文件在node_modules和dist / vendor中。但是,当我安装angular2-localstorage时,node_modules中只有一个文件夹,不能通过Web访问。
根据网上的一些内容,我的映射建议是
const map: any = {
'@angular2-material': 'vendor/@angular2-material',
'angular2-localstorage': 'node_modules/angular2-localstorage'
};
这为我的本地存储和材料工作生产404正常。
我错过了什么吗?如何使本地存储工作。
此外。 node_modules中的本地存储文件夹只有ts文件而不是js文件。
由于
答案 0 :(得分:1)
您可能忘记将它们添加到供应商文件列表中,请参阅指南:3rd party lib installation
INSERT INTO DIM_TEMPS (ID_DATE, DATE_DU_JOUR, ANNEE_CALENDAIRE,
SEMESTRE, LIBELLE_SEMESTRE, TRIMESTRE, LIBELLE_TRIMESTRE,
ANNEE_MOIS,MOIS, LIBELLE_MOIS, SEMAINE, JOUR, LIBELLE_JOUR,
JOUR_FERIE, JOUR_OUVRE, QUANTIEME_JOUR)
SELECT TO_NUMBER(TO_CHAR(DT_CAL, "YYYYMMDD")) AS ID_CALENDRIER,
DT_CAL AS DATE_DU_JOUR,
TO_NUMBER(TO_CHAR(DT_CAL, "YYYY")) AS ANNEE_CALENDAIRE,
ROUND(TO_NUMBER(TO_CHAR(DT_CAL, "Q"))/2) AS SEMESTRE,
CASE ROUND(TO_NUMBER(TO_CHAR(DT_CAL, "Q"))/2)
WHEN 1 THEN "1er semestre"
ELSE "2ème semestre" END AS LIBELLE_SEMESTRE,
TO_NUMBER(TO_CHAR(DT_CAL, "Q")) AS TRIMESTRE,
CASE TO_NUMBER(TO_CHAR(DT_CAL, "Q"))
WHEN 1 THEN "1er trimestre"
ELSE TO_NUMBER(TO_CHAR(DT_CAL, "Q")) || "ème trimestre"
END AS LIBELLE_TRIMESTRE,
TO_NUMBER(TO_NUMBER(TO_CHAR(DT_CAL, "YYYY"))
|| LPAD(TO_CHAR(DT_CAL, "MM"), 2, "0")) AS ANNEE_MOIS,
TO_NUMBER(TO_CHAR(DT_CAL, "MM")) AS MOIS,
TO_CHAR(DT_CAL, "Month") AS LIBELLE_MOIS,
TO_NUMBER(TO_CHAR(DT_CAL, "IW")) AS SEMAINE,
TO_NUMBER(TO_CHAR(DT_CAL, "DD")) AS JOUR,
TO_CHAR(DT_CAL, "Day") AS LIBELLE_JOUR,
CASE WHEN TO_CHAR(DT_CAL, "D") IN ("6", "7")
THEN "Oui" ELSE "Non" END AS JOUR_FERIE,
CASE WHEN TO_CHAR(DT_CAL, "D") IN ("6", "7")
THEN "Non" ELSE "Oui" END AS JOUR_OUVRE,
NUM_JOUR AS QUANTIEME_JOUR
FROM (
SELECT to_date("19000101","YYYYMMDD") + (rownum - 1) AS DT_CAL,
rownum AS NUM_JOUR
FROM dual connect BY to_date("19000101","YYYYMMDD") + (rownum - 1)
);