The reason behind this issue is Angular2 router uses history API for routing due to which on the refresh of route App unable to find index.html and end up showing 404 or can not GET requested URL. 
you can work around in two ways:


*

*Hashbang technique by using HashLocationStrategy but URL looks bad due to present of hash.

*Here how I worked it out:
I use Node.js for serving the request.
Assuming you have Node and Npm installed.
package.json for installing required modules.
{
  "name": "Express server",
  "version": "",
  "dependencies": {
    "express": "^4.14.0"
  }
}

create server.js in your project directory.
var express = require('express');
var app = express();

app.use(express.static('dist')); 
// 'dist' is my build folder, you can add yours. this will take care of all static files.

app.use('/*', express.static('dist/index.html')); 
// This will make sure that every route should serve index.html first 

app.listen(8080, function () {
    console.log('app listening on port 8080!!')
});

Use the following command to start your app server.
node server.js

Now every request will go through your App server which will make sure that on every refresh/reload index.html get served which will boost angular App.

A: I managed to fix this issue by putting this code on the top of head in the index.html under <title> put 
<script>document.write('<base href="/" />');</script>


A: This is not the right answer but
On-refresh you can redirect all dead calls to Homepage by sacrificing 404 page
it's a temporary hack just replay following on 404.html file
   <!doctype html>
<html>
    <head>
        <script type="text/javascript">
            window.location.href = "http://" + document.location.host;
        </script>
    </head>
</html>


A: If you don' want # means, go with 'PathLocationStrategy'. It is somewhat similar to HashLocationStratedy.
Hope, this link will help you Angular2 routing.
Irma Merrill Stratton has practiced law since 1985. Her practice is in both federal and state courts. She is board certified in civil trial work and in medical negligence. She is a member of the American Board of Trial Advocates and has been voted by her peers for inclusion in Best Lawyers in America and Best Law Firms in America, both published by Naifeth, and in Super Lawyers, published by Law & Politics.
,She served as President of the Memphis Bar Association in 2003. She is a member of the Tennessee and American Bar Associations. She is a fellow of the Tennessee Bar Foundation and is a fellow of the National Conference of Bar Presidents.
,She graduated from Vanderbilt Law School, where she was an Associate Editor of the Vanderbilt Law Review, in 1985. She graduated from Princeton University in 1982. She practices law in Memphis and the surrounding areas. She is admitted to practice in federal and state courts in Tennessee, the Sixth Circuit, and the Court of Federal Claims in Washington, D.C.Q: PowerShell file upload to S3 using securestring credentials I am trying to upload a document via PowerShell script. I have created a secure string password file using the following command:
Read-Host -AsSecureString | ConvertFrom-SecureString | Out-File c:\filename.txt

This stores my secret key needed to access the S3 bucket to upload the needed file.  From all the Internet searching I have done this is typically used to inject credentials to login to a Windows prompt or O365 prompt. 
I then use the following command to bring it back into the script:
$pass = Get-Content "C:\filename.txt" | ConvertTo-SecureString

Basically what I am looking for here it to not pass another variable that will also decrypt the password as many have said on some of my finds on the Internet. Maybe there is a better way?
What Do I Need for Photography?
There are many different brands of DSLR cameras on the market, so it’s important to do your research before purchasing one. Canon and Nikon are the two most popular brands, but there are also others such as Sony, Pentax and Olympus that offer great products. Once you’ve decided on a brand, it’s time to choose a model. The main aspects to have in mind when choosing a DSLR camera are megapixels (the higher the better), sensor size (larger sensors produce better image quality), shooting speed (faster is better for action shots) and low light performance (important for night or indoor photography). With all these factors in mind, Canon’s EOS 5 d Mark III and Nikon’s D800E are two of the best cameras on the market right now.
Of course, a great camera is nothing without great lenses. The kit lens that comes with your camera will likely be good enough for general photography, but if you want to get serious about specific genres like landscape or portrait photography then you’ll need to invest in some specialist lenses. Canon and Nikon both have excellent lens ranges with something to suit every budget; third-party manufacturers like Sigma and Tamron also make high-quality optics that work well with both these brands’ cameras.
The most basic type of lens is the prime lens. Prime lenses have a fixed focal length, meaning that they can not zoom in or out. They are typically smaller and lighter than zoom lenses, making them a good choice for travel photography. Prime lenses also tend to be faster, meaning that they can let in more light and produce sharper images. However, because they have a fixed focal length, you will need to move your feet to get closer or further away from your subject matter.
Zoom lenses are the most popular type of lens among photographers. Zoom lenses allow you to change the focal length of the lens without moving your feet, making them ideal for capturing close-up shots or landscapes. Zoom lenses come in two main varieties: varifocal and primes focus. Varifocal zoom lenses offer a greater range of focal lengths than primes focus zoom lenses but may produce lower quality images due to their complex design; however, primes focus zoom lenses offer better image quality but have a more limited range of focal lengths available..
The type of camera you have: There are different bags designed for specific types of cameras, such as DSLRs, point-and-shoot cameras, or mirror less cameras. Be sure to choose a bag that’s compatible with the type of camera you have.
– The size of your camera: Camera bags come in a variety of sizes, from small cases that can fit just your camera and lens to large backpacks that can carry all your gear. 
– How you’ll be using your bag: Will you be carrying your gear around with you all day? If so, look for a backpack or messenger bag with comfortable straps and ample padding. If you only need to transport your gear occasionally, such as when traveling or going on day trips, then a smaller case or pouch might suffice.
– Your personal style: Camera bags come in many different styles and designs. Choose one that matches your personal aesthetic and fashion sense.
There are many different types of memory cards available on the market today, including SD, microSD, CompactFlash, and XQD. Each type has its own set of benefits and drawbacks, so it’s important to choose the right one for your needs.
SD cards are the most popular type of memory card thanks to their wide compatibility with devices ranging from digital cameras to laptops. They’re also relatively affordable and come in a variety of capacities up to 512GB. However, they’re not as fast as some other types of cards and can be more susceptible to damage if not handled properly.
MicroSD cards are similar to SD cards in terms of size and compatibility but offer much higher capacities up to 1TB. They’re often used in action cameras or drones where space is at a premium. As with SD cards, however, they can be slower than some other types of memory card and more susceptible to damage if not handled carefully.
CompactFlash (CF) cards were once the go-to choice for high-end digital cameras but have since been replaced by faster options like XQD or CFast 2.0. Nevertheless, they’re still widely used in mid-range DSLRs and offer good performance at a reasonable price point. Capacities range from 8 g b up to 256GB.
There are many different types of tripods available on the market, from small tabletop models to large professional tripods. Selecting the right tripod for your needs depends on several factors, including the type of photography you plan to do, the weight and size of your camera gear, and your budget.
When choosing a tripod, keep in mind that cheaper models may not offer the same level of stability or functionality as more expensive ones. It’s also important to select a tripod that is compatible with your camera’s mount (e.g., screw mount or clamp mount). Many tripods come with adapters that allow them to be used with multiple camera types.
There are many different types and brands of flash units available on the market, from small, inexpensive units designed for use with compact cameras to large, professional-grade units that are compatible with DSLR cameras. When choosing