POST /index.php?option=com_ajax&module=pwebcontact&Itemid=101&method=uploader HTTP/1.0" 200 197 "http://mysite.com.ua/"
www/media/mod_pwebcontact/upload/106
ngOnInit() {
this.en = {
firstDayOfWeek: 0,
dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
dayNamesMin: ["Su","Mo","Tu","We","Th","Fr","Sa"],
monthNames: [ "January","February","March","April","May","June","July","August","September","October","November","December" ],
monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ],
today: 'Today',
clear: 'Clear'
};
}
ngOnInit() {
this.en = {
firstDayOfWeek: 0,
dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
dayNamesMin: ["Su","Mo","Tu","We","Th","Fr","Sa"],
monthNames: [ "January","February","March","April","May","June","July","August","September","October","November","December" ],
monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ],
today: 'Today',
clear: 'Clear'
};
}
this.get()
.subscribe(
e => {
console.log(e.headers.get('X-WP-Total'));
});
core.js:1427 ERROR TypeError: Cannot read property 'get' of undefined
this.get()
.subscribe(
e => {
console.log(e.headers);
});
<base href="/ru/">
../../assets/img/phone-icon.png
../../ru/assets/img/phone-icon.png
<script type="text/javascript" src="inline.39fd3cea932359cf7414.bundle.js"></script>
<script type="text/javascript" src="polyfills.84c67e71244060afdb85.bundle.js"></script>
<script type="text/javascript" src="main.21446803287820ee2358.bundle.js"></script>
<script type="text/javascript" src="/ru/inline.39fd3cea932359cf7414.bundle.js"></script>
<script type="text/javascript" src="/ru/polyfills.84c67e71244060afdb85.bundle.js"></script>
<script type="text/javascript" src="/ru/main.21446803287820ee2358.bundle.js"></script>