frontend

Angular 6 Error “NullInjectorError: No provider for Router!”

家住魔仙堡 提交于 2019-12-22 07:53:29
问题 I'm currently working on a project where I need the user to fill out an angular form and then send it to a route in my backend to process the data. The backend is in ASP.NET and I already have a functional form in HTML that's working : <body> <h2 style="text-align:center">Push notification test</h2> <form style="align-content:center" action="SendPushNotification" method="post"> <div> <fieldset> <legend> Informations </legend> <label> Notification name : </label> <input name="notificationName"

Angular 6 Error “NullInjectorError: No provider for Router!”

不想你离开。 提交于 2019-12-22 07:53:04
问题 I'm currently working on a project where I need the user to fill out an angular form and then send it to a route in my backend to process the data. The backend is in ASP.NET and I already have a functional form in HTML that's working : <body> <h2 style="text-align:center">Push notification test</h2> <form style="align-content:center" action="SendPushNotification" method="post"> <div> <fieldset> <legend> Informations </legend> <label> Notification name : </label> <input name="notificationName"

At which point do you decide to stop supporting older browsers?

倾然丶 夕夏残阳落幕 提交于 2019-12-22 05:07:36
问题 I would like to start a community discussion. As per my question, when do you decide to stop supporting older browsers? I've nearly completed the development of a large personal application. It uses a lot of HTML5, CSS3 and JavaScript. If I were to support older browsers, I would estimate that it would increase my front end work load by at least 50%. And to be frank, I don't want to support the older browsers. From a business point of view, one could argue that if I don't, I could lose

At which point do you decide to stop supporting older browsers?

僤鯓⒐⒋嵵緔 提交于 2019-12-22 05:07:04
问题 I would like to start a community discussion. As per my question, when do you decide to stop supporting older browsers? I've nearly completed the development of a large personal application. It uses a lot of HTML5, CSS3 and JavaScript. If I were to support older browsers, I would estimate that it would increase my front end work load by at least 50%. And to be frank, I don't want to support the older browsers. From a business point of view, one could argue that if I don't, I could lose

Update category from the front-end in Wordpress

北城余情 提交于 2019-12-22 01:09:30
问题 I've got this mostly working based on a tutorial I found. This is a front-end form that let's me change the post title when I hit the submit button, but I also want to allow updating the category and I have no idea how to get it to do that. I'm using wp_dropdown_categories to spit out a drop-down box of existing categories, and if it helps to know the name and id of that is "cat". I suspect update_post_meta might need to be involved, but I could be wrong and I'm not entirely sure how to go

What is the point of request.mode in the fetch API, especially with respect to cors?

左心房为你撑大大i 提交于 2019-12-21 19:43:30
问题 Looking at the new fetch API, you can specificy a mode field in the request. From Mozilla: The mode read-only property of the Request interface contains the mode of the request (e.g., cors, no-cors, same-origin, or navigate.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable. And then how to use it: var myHeaders = new Headers(); var myInit = { method: 'GET', headers: myHeaders, mode: 'cors', cache: 'default' }; fetch

Which Version control system you would prefer for HTML, CSS, Javascript development for small team of Developers?

断了今生、忘了曾经 提交于 2019-12-21 17:11:53
问题 Which Version control system would be good for HTML, CSS, Javascript development for 4 Developers? We are 4 developers, all in different countries and we all have different Operating systems. 2 Developers have Macbooks, one has Windows 7 and another one has Ubuntu 9 linux) Some time on remote location we also do some changes in code using iphone and ipad using FTP On The Go PRO And some time some place Internet is not available so we also work without internet. I want to know the preferred

Are clean URLs a backend or a frontend thing

若如初见. 提交于 2019-12-21 13:13:17
问题 What do you think.. are clean URLs a backend or frontend 'discipline' 回答1: If we're talking url's being 'clean' from an end user experience then I'm going to break the mould a bit and say that url's in general are not intuitive and they never will be, they are intended to be machine readable. There is no standard to the format of a url such that when navigating from site to site humans will never ever remember how to reach a resource purely through remembering urls and their 'friendly syntax'

Questions about Request Animation Frame

半世苍凉 提交于 2019-12-21 12:32:49
问题 I'm trying to build a parallax site, which will move few elements while scrolling the site. But instead of using a scroll event listener I'm using requestAnimationFrame , after reading this post by Paul Irish, and this video which said that scroll listener is a bit buggy. My questions are: It looks quite smooth in Chrome, but it's flickering badly in Firefox. Did I do something wrong here? Does my code actually taking up more resources than using normal scroll event listener ? I can hear my

Concerns about separating front-end and back-end with a NodeJS UI server [closed]

倾然丶 夕夏残阳落幕 提交于 2019-12-21 04:42:37
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . During the last months, we at work have been looking for a solution to the following problem: front-end developers can't easily modify the appearance of the website without the help of back-end devs. Our culture as a team is mostly based on full-stack frameworks such as