{"id":2658,"date":"2017-06-22T17:17:07","date_gmt":"2017-06-22T11:47:07","guid":{"rendered":"https:\/\/code4developers.com\/?p=2658"},"modified":"2017-06-22T17:17:07","modified_gmt":"2017-06-22T11:47:07","slug":"angular-4-application-with-visual-studio","status":"publish","type":"post","link":"https:\/\/code4developers.com\/angular-4-application-with-visual-studio\/","title":{"rendered":"Angular 4 in Visual Studio"},"content":{"rendered":"<p><strong>Introduction<\/strong><\/p>\n<p>In this article, we will discuss about how to set up and start Angular 4 in visual studio. As many of developers have worked with Microsoft tools and technologies, they preferred visual studio as web development platform.<\/p>\n<p><!--more--><\/p>\n<h4 id=\"step-1-install-node-js-and-npm\"><strong>Step 1: <\/strong>Install Node.js and npm<\/h4>\n<p>The first step is to install Node.js and npm (Node Package Manager) in your system. It is recommended that you have node version 6.10 or greater and npm version 3.10 or greater. You can check the versions that you have on your machine type the following commands in a command window.<br \/>\n<strong>node -v<br \/>\nnpm \u2013v<\/strong><\/p>\n<p>You can get the latest version of Node.js from the following website. Click on the download link depending on your operating system.<br \/>\n<a href=\"https:\/\/nodejs.org\/en\/download\/\" target=\"_blank\" rel=\"noopener\">https:\/\/nodejs.org\/en\/download\/<\/a><\/p>\n<p><strong>Step 2: Install Visual Studio 2015 Update 3<\/strong><\/p>\n<p>Make sure you have Visual Studio 2015 Update 3 installed. To check the version of Visual Studio you have click on the\u00a0<strong>&#8220;Help&#8221;<\/strong>\u00a0menu and then select\u00a0<strong>&#8220;About Microsoft Visual Studio&#8221;<\/strong>. The following are the download links if you don&#8217;t have Visual Studio 2015 Update 3.<\/p>\n<h4 id=\"visual-studio-enterprise-2015-update-3\"><a href=\"http:\/\/download.microsoft.com\/download\/8\/4\/3\/843ec655-1b67-46c3-a7a4-10a1159cfa84\/vs2015.3.ent_enu.iso\" target=\"_blank\" rel=\"noopener\"><strong>Visual Studio Enterprise 2015 &#8211; Update 3<\/strong><\/a><\/h4>\n<h4 id=\"visual-studio-professional-2015-update-3\"><a href=\"http:\/\/download.microsoft.com\/download\/e\/b\/c\/ebc2c43f-3821-4a0b-82b1-d05368af1604\/vs2015.3.pro_enu.iso\" target=\"_blank\" rel=\"noopener\"><strong>Visual Studio Professional 2015 &#8211; Update 3<\/strong><\/a><\/h4>\n<h4 id=\"visual-studio-community-2015-update-3\"><a href=\"http:\/\/download.microsoft.com\/download\/b\/e\/d\/bedddfc4-55f4-4748-90a8-ffe38a40e89f\/vs2015.3.com_enu.iso\" target=\"_blank\" rel=\"noopener\"><strong>Visual Studio Community 2015 &#8211; Update 3<\/strong><\/a><\/h4>\n<p><strong>\u00a0<img  loading=\"lazy\"  decoding=\"async\"  data-attachment-id=\"2650\"  data-permalink=\"https:\/\/code4developers.com\/angular-4-application-with-visual-studio\/1-3\/\"  data-orig-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1-2.png?fit=264%2C176&amp;ssl=1\"  data-orig-size=\"264,176\"  data-comments-opened=\"1\"  data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\"  data-image-title=\"1\"  data-image-description=\"\"  data-image-caption=\"\"  data-medium-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1-2.png?fit=264%2C176&amp;ssl=1\"  data-large-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1-2.png?fit=264%2C176&amp;ssl=1\"  class=\"alignnone size-full wp-image-2650 pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQgAAACwAQMAAADJ1mIQAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAB1JREFUWMPtwTEBAAAAwqD1T20Gf6AAAAAAAIDXABdgAAGOBWWLAAAAAElFTkSuQmCC\"  alt=\"VS15\"  width=\"264\"  height=\"176\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 264px) 100vw, 264px\"  data-pk-src=\"https:\/\/code4developers.com\/wp-content\/uploads\/2017\/06\/1-2.png\"  data-pk-srcset=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1-2.png?w=264&amp;ssl=1 264w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1-2.png?resize=120%2C80&amp;ssl=1 120w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1-2.png?resize=90%2C60&amp;ssl=1 90w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1-2.png?resize=240%2C160&amp;ssl=1 240w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1-2.png?resize=180%2C120&amp;ssl=1 180w\" ><\/strong><\/p>\n<h4 id=\"step-3-now-configure-environment-settings-for-node-and-npm-in-visual-studio\"><strong>Step 3: <\/strong>Now\u00a0Configure environment settings for\u00a0node\u00a0and\u00a0<strong>npm<\/strong>\u00a0in Visual Studio<\/h4>\n<ol>\n<li>In Visual Studio click on Tools &#8211; Options.<\/li>\n<li>In the &#8220;Options&#8221; window, expand &#8220;Projects and Solutions&#8221; and select &#8220;External Web Tools&#8221;<\/li>\n<\/ol>\n<ol start=\"3\">\n<li>In the right pane, move the global $(PATH) entry to be above the internal path $(DevEnvDir) entries. This tells Visual Studio to look for external tools (like npm) in the global path before the internal path.<img  loading=\"lazy\"  decoding=\"async\"  data-attachment-id=\"2651\"  data-permalink=\"https:\/\/code4developers.com\/angular-4-application-with-visual-studio\/2-4\/\"  data-orig-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/2-1.png?fit=364%2C129&amp;ssl=1\"  data-orig-size=\"364,129\"  data-comments-opened=\"1\"  data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\"  data-image-title=\"2\"  data-image-description=\"\"  data-image-caption=\"\"  data-medium-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/2-1.png?fit=300%2C106&amp;ssl=1\"  data-large-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/2-1.png?fit=364%2C129&amp;ssl=1\"  class=\"size-full wp-image-2651 alignnone pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWwAAACBAQMAAADe\/BISAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAB1JREFUWMPtwTEBAAAAwqD1T20MH6AAAAAAAICzARevAAFRISI1AAAAAElFTkSuQmCC\"  alt=\"nd\"  width=\"364\"  height=\"129\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 364px) 100vw, 364px\"  data-pk-src=\"https:\/\/code4developers.com\/wp-content\/uploads\/2017\/06\/2-1.png\"  data-pk-srcset=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/2-1.png?w=364&amp;ssl=1 364w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/2-1.png?resize=300%2C106&amp;ssl=1 300w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/2-1.png?resize=120%2C43&amp;ssl=1 120w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/2-1.png?resize=90%2C32&amp;ssl=1 90w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/2-1.png?resize=320%2C113&amp;ssl=1 320w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/2-1.png?resize=240%2C85&amp;ssl=1 240w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/2-1.png?resize=180%2C64&amp;ssl=1 180w\" ><\/li>\n<\/ol>\n<ol start=\"4\">\n<li>Click &#8220;OK&#8221; to close the &#8220;Options&#8221; window and then restart Visual Studio for the changes to take effect<\/li>\n<\/ol>\n<h4 id=\"step-4-install-typescript-for-visual-studio-2015\"><strong>Step 4:<\/strong>\u00a0\u00a0Install TypeScript for Visual Studio 2015<\/h4>\n<ol>\n<li>To develop Angular applications you need TypeScript 2.2.0 or later.<\/li>\n<li>To check the version of TypeScript, clik on the\u00a0&#8220;Help&#8221;menu in Visual Studio and Select\u00a0&#8220;About Microsoft Visual Studio&#8221;.<br \/>\n<img  loading=\"lazy\"  decoding=\"async\"  data-attachment-id=\"2652\"  data-permalink=\"https:\/\/code4developers.com\/angular-4-application-with-visual-studio\/3-3\/\"  data-orig-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/3-2.png?fit=342%2C392&amp;ssl=1\"  data-orig-size=\"342,392\"  data-comments-opened=\"1\"  data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\"  data-image-title=\"3\"  data-image-description=\"\"  data-image-caption=\"\"  data-medium-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/3-2.png?fit=262%2C300&amp;ssl=1\"  data-large-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/3-2.png?fit=342%2C392&amp;ssl=1\"  class=\"size-full wp-image-2652 alignnone pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVYAAAGIAQMAAAAgVVqfAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAACdJREFUeNrtwQENAAAAwqD3T20PBxQAAAAAAAAAAAAAAAAAAAAA\/BpDYAABOHoUkgAAAABJRU5ErkJggg==\"  alt=\"vs\"  width=\"342\"  height=\"392\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 342px) 100vw, 342px\"  data-pk-src=\"https:\/\/code4developers.com\/wp-content\/uploads\/2017\/06\/3-2.png\"  data-pk-srcset=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/3-2.png?w=342&amp;ssl=1 342w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/3-2.png?resize=262%2C300&amp;ssl=1 262w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/3-2.png?resize=120%2C138&amp;ssl=1 120w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/3-2.png?resize=90%2C103&amp;ssl=1 90w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/3-2.png?resize=320%2C367&amp;ssl=1 320w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/3-2.png?resize=240%2C275&amp;ssl=1 240w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/3-2.png?resize=180%2C206&amp;ssl=1 180w\" ><\/li>\n<li>Download and install the latest version of TypeScript for Visual Studio 2015 from the following URL<a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=48593\" target=\"_blank\" rel=\"noopener\">https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=48593<\/a><\/li>\n<li>After installing TypeScript, the installation wizard prompts you to restart Visual Studio. So, please restart Visual Studio for the changes to take effect.<\/li>\n<\/ol>\n<h4 id=\"step-5-create-empty-asp-net-web-application-project\"><strong>Step 5:<\/strong><strong>\u00a0<\/strong>Create Empty ASP.NET Web Application project<\/h4>\n<ol>\n<li>Run Visual Studio as Administrator<\/li>\n<li>Click on File &#8211; New Project<\/li>\n<li>Select &#8220;Web&#8221; under &#8220;Visual C#&#8221;. From the right pane select &#8220;ASP.NET Web Application&#8221;<\/li>\n<li>Name the project &#8220;Angular4Demo&#8221;<\/li>\n<li>On the next screen, select &#8220;Empty&#8221; template and click &#8220;OK&#8221;<\/li>\n<\/ol>\n<p><strong>Step 6<\/strong><strong>:<\/strong>\u00a0Download the\u00a0<strong>&#8220;Quick Start Files&#8221;<\/strong>\u00a0from the Angular web site using the link below. Extract the contents of the downloaded .ZIP folder.<\/p>\n<p><a href=\"https:\/\/github.com\/angular\/quickstart\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/angular\/quickstart<\/a><\/p>\n<h4 id=\"step-7-copy-the-required-starter-files-to-the-web-application-project\"><strong>Step 7<\/strong><strong>:<\/strong>\u00a0Copy the required &#8220;Starter files&#8221; to the web application project<\/h4>\n<p>We do not need all the starter files that we downloaded. As you can see from the image below, we need 4 folders\/files.<\/p>\n<ul>\n<li>src folder and its contents<\/li>\n<li>bs-config.json<\/li>\n<li>package.json<\/li>\n<li>tslint.json<br \/>\n<img  loading=\"lazy\"  decoding=\"async\"  data-attachment-id=\"2653\"  data-permalink=\"https:\/\/code4developers.com\/angular-4-application-with-visual-studio\/4-3\/\"  data-orig-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/4-2.png?fit=183%2C379&amp;ssl=1\"  data-orig-size=\"183,379\"  data-comments-opened=\"1\"  data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\"  data-image-title=\"4\"  data-image-description=\"\"  data-image-caption=\"\"  data-medium-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/4-2.png?fit=145%2C300&amp;ssl=1\"  data-large-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/4-2.png?fit=183%2C379&amp;ssl=1\"  class=\"alignnone size-full wp-image-2653 pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAALcAAAF7AQMAAACq\/YinAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAACBJREFUaN7twTEBAAAAwqD1T20IX6AAAAAAAAAAAIDXACOIAAHvRAZAAAAAAElFTkSuQmCC\"  alt=\"cd\"  width=\"183\"  height=\"379\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 183px) 100vw, 183px\"  data-pk-src=\"https:\/\/code4developers.com\/wp-content\/uploads\/2017\/06\/4-2.png\"  data-pk-srcset=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/4-2.png?w=183&amp;ssl=1 183w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/4-2.png?resize=145%2C300&amp;ssl=1 145w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/4-2.png?resize=120%2C249&amp;ssl=1 120w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/4-2.png?resize=90%2C186&amp;ssl=1 90w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/4-2.png?resize=180%2C373&amp;ssl=1 180w\" ><\/li>\n<\/ul>\n<p>Copy the above files\/folders and paste them in the root directory of &#8220;Angular2Demo&#8221; web application project.<\/p>\n<p>Now click &#8220;Show All File&#8221; icon in &#8220;Solution Explorer&#8221; and include all the copied files\/folders in the project.<\/p>\n<p>At this stage your project structure in Visual Studio should be as shown below.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  data-attachment-id=\"2654\"  data-permalink=\"https:\/\/code4developers.com\/angular-4-application-with-visual-studio\/5-2\/\"  data-orig-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/5-1.png?fit=250%2C463&amp;ssl=1\"  data-orig-size=\"250,463\"  data-comments-opened=\"1\"  data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\"  data-image-title=\"5\"  data-image-description=\"\"  data-image-caption=\"\"  data-medium-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/5-1.png?fit=162%2C300&amp;ssl=1\"  data-large-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/5-1.png?fit=250%2C463&amp;ssl=1\"  class=\"alignnone size-full wp-image-2654 pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAHPAQMAAABA4lXUAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAACZJREFUaN7twTEBAAAAwqD1T20Hb6AAAAAAAAAAAAAAAAAAAIDTADuvAAGu+77ZAAAAAElFTkSuQmCC\"  alt=\"\"  width=\"250\"  height=\"463\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 250px) 100vw, 250px\"  data-pk-src=\"https:\/\/code4developers.com\/wp-content\/uploads\/2017\/06\/5-1.png\"  data-pk-srcset=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/5-1.png?w=250&amp;ssl=1 250w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/5-1.png?resize=162%2C300&amp;ssl=1 162w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/5-1.png?resize=120%2C222&amp;ssl=1 120w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/5-1.png?resize=90%2C167&amp;ssl=1 90w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/5-1.png?resize=240%2C444&amp;ssl=1 240w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/5-1.png?resize=180%2C333&amp;ssl=1 180w\" ><\/p>\n<p>When including the files in the project if you get a prompt to\u00a0<strong>&#8220;Search for Typescript Typings&#8221;<\/strong>\u00a0click &#8220;No&#8221;.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  data-attachment-id=\"2655\"  data-permalink=\"https:\/\/code4developers.com\/angular-4-application-with-visual-studio\/6-2\/\"  data-orig-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/6-1.png?fit=498%2C212&amp;ssl=1\"  data-orig-size=\"498,212\"  data-comments-opened=\"1\"  data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\"  data-image-title=\"6\"  data-image-description=\"\"  data-image-caption=\"\"  data-medium-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/6-1.png?fit=300%2C128&amp;ssl=1\"  data-large-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/6-1.png?fit=498%2C212&amp;ssl=1\"  class=\"alignnone size-full wp-image-2655 pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfIAAADUAQMAAABd3TMMAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAACRJREFUaN7twTEBAAAAwqD1T20ND6AAAAAAAAAAAAAAAAAAPg01AAABo6\/18AAAAABJRU5ErkJggg==\"  alt=\"\"  width=\"498\"  height=\"212\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 498px) 100vw, 498px\"  data-pk-src=\"https:\/\/code4developers.com\/wp-content\/uploads\/2017\/06\/6-1.png\"  data-pk-srcset=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/6-1.png?w=498&amp;ssl=1 498w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/6-1.png?resize=300%2C128&amp;ssl=1 300w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/6-1.png?resize=120%2C51&amp;ssl=1 120w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/6-1.png?resize=90%2C38&amp;ssl=1 90w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/6-1.png?resize=320%2C136&amp;ssl=1 320w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/6-1.png?resize=240%2C102&amp;ssl=1 240w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/6-1.png?resize=180%2C77&amp;ssl=1 180w\" ><\/p>\n<h4 id=\"step-8-restore-the-required-packages\"><strong>\u00a0<\/strong><strong>Step 8:<\/strong>\u00a0Restore the required packages<\/h4>\n<p>In the &#8220;Solution Explorer&#8221; right click on &#8220;package.json&#8221; file and select &#8220;Restore Packages&#8221; from the context menu. This takes a few minutes to load all the modules. You can see the status in &#8220;Visual Studio Output&#8221; window. After the restoration is complete, you will see a message &#8220;Installing Packages Complete&#8221;. To see all the installed node modules, click on &#8220;Show all Files&#8221; icon in Solution Explorer.\u00a0DO NOT include &#8220;node_modules&#8221; folder in the project.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  data-attachment-id=\"2656\"  data-permalink=\"https:\/\/code4developers.com\/angular-4-application-with-visual-studio\/7-2\/\"  data-orig-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/7-1.png?fit=343%2C312&amp;ssl=1\"  data-orig-size=\"343,312\"  data-comments-opened=\"1\"  data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\"  data-image-title=\"7\"  data-image-description=\"\"  data-image-caption=\"\"  data-medium-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/7-1.png?fit=300%2C273&amp;ssl=1\"  data-large-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/7-1.png?fit=343%2C312&amp;ssl=1\"  class=\"alignnone size-full wp-image-2656 pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVcAAAE4AQMAAADVXSLUAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAACRJREFUaN7twTEBAAAAwqD1T20Hb6AAAAAAAAAAAAAAAAAAeAw1oAABaozv+AAAAABJRU5ErkJggg==\"  alt=\"asd\"  width=\"343\"  height=\"312\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 343px) 100vw, 343px\"  data-pk-src=\"https:\/\/code4developers.com\/wp-content\/uploads\/2017\/06\/7-1.png\"  data-pk-srcset=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/7-1.png?w=343&amp;ssl=1 343w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/7-1.png?resize=300%2C273&amp;ssl=1 300w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/7-1.png?resize=120%2C109&amp;ssl=1 120w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/7-1.png?resize=90%2C82&amp;ssl=1 90w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/7-1.png?resize=320%2C291&amp;ssl=1 320w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/7-1.png?resize=240%2C218&amp;ssl=1 240w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/7-1.png?resize=180%2C164&amp;ssl=1 180w\" ><\/p>\n<h4 id=\"step-9-run-the-project\"><strong>Step 9: Run the project<\/strong><\/h4>\n<ol>\n<li>In the &#8220;RUN&#8221; window type &#8220;cmd&#8221; and press enter<\/li>\n<li>Change the directory in the command prompt to the directory where you have the web application project. I have my web application project in \u201cD:\\AngularJS\\Angular4Demo\\Angular4Demo&#8221;. So I typed\u00a0CD D:\\AngularJS\\Angular4Demo\\Angular4Demo\u00a0and upon pressing the enter key I ta am in the root folder.<\/li>\n<li>Type &#8220;npm start&#8221; and press &#8220;Enter&#8221; key.<br \/>\n<img  loading=\"lazy\"  decoding=\"async\"  data-attachment-id=\"2657\"  data-permalink=\"https:\/\/code4developers.com\/angular-4-application-with-visual-studio\/8-2\/\"  data-orig-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/8-1.png?fit=428%2C119&amp;ssl=1\"  data-orig-size=\"428,119\"  data-comments-opened=\"1\"  data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\"  data-image-title=\"8\"  data-image-description=\"\"  data-image-caption=\"\"  data-medium-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/8-1.png?fit=300%2C83&amp;ssl=1\"  data-large-file=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/8-1.png?fit=428%2C119&amp;ssl=1\"  class=\"alignnone size-full wp-image-2657 pk-lazyload\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAawAAAB3AQMAAABliOa3AAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAB1JREFUWMPtwTEBAAAAwqD1T20KP6AAAAAAAAC4GhmRAAGFdI0UAAAAAElFTkSuQmCC\"  alt=\"cmd\"  width=\"428\"  height=\"119\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 428px) 100vw, 428px\"  data-pk-src=\"https:\/\/code4developers.com\/wp-content\/uploads\/2017\/06\/8-1.png\"  data-pk-srcset=\"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/8-1.png?w=428&amp;ssl=1 428w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/8-1.png?resize=300%2C83&amp;ssl=1 300w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/8-1.png?resize=120%2C33&amp;ssl=1 120w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/8-1.png?resize=90%2C25&amp;ssl=1 90w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/8-1.png?resize=320%2C89&amp;ssl=1 320w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/8-1.png?resize=240%2C67&amp;ssl=1 240w, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/8-1.png?resize=180%2C50&amp;ssl=1 180w\" ><\/li>\n<\/ol>\n<ol start=\"4\">\n<li>This launches the TypeScript compiler (tsc) which compile the application and wait for changes. It also starts the lite-server and launches the browser where you will see the output &#8211; Hello Angular<\/li>\n<li>At this point, open &#8220;app.component.ts&#8221; file from &#8220;Solution Explorer&#8221;. This file is present in &#8220;app&#8221; folder in &#8220;src&#8221; folder.<\/li>\n<li>Change &#8220;name&#8221; value from &#8220;Angular&#8221; to &#8220;Angular 4&#8221; and you will see the changes reflected on the web page automatically.<\/li>\n<\/ol>\n<p>At the moment we do not have the capability to run the project by pressing F5 or CTRL + F5.<\/p>\n<h4 id=\"summary\"><strong>Summary<\/strong><\/h4>\n<p>In this article, I discussed about how to configure Angular 4 in Visual Studio and develop Angular 4 application on Visual Studio platform. In next article we will discuss about how to run Angular 4 application using F5 or CTRl + F5.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In this article, we will discuss about how to set up and start Angular 4 in visual studio. As many of developers have worked with Microsoft tools and technologies,&hellip;<\/p>\n","protected":false},"author":5,"featured_media":2649,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[28,31],"tags":[29,30],"powerkit_post_featured":[],"class_list":{"0":"post-2658","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-angular","8":"category-visual-studio","9":"tag-angular","10":"tag-visual-studio"},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/angular-2.png?fit=240%2C240&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8NAi4-GS","jetpack-related-posts":[{"id":2586,"url":"https:\/\/code4developers.com\/angular-4-installations\/","url_meta":{"origin":2658,"position":0},"title":"Angular 4 Installations","author":"Nisarg Dave","date":"June 14, 2017","format":false,"excerpt":"Introduction This article demonstrates how to install Angular 4 in your local system and start working with angular\/cli using basic commands. What is Angular 4? Before starting with Angular 4, we need to know about Angular 2. Angular 2 is totally different kind of framework from Angular 1. Angular 1\u2026","rel":"","context":"In &quot;Angular&quot;","block_context":{"text":"Angular","link":"https:\/\/code4developers.com\/category\/angular\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1.png?resize=700%2C400 2x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2017\/06\/1.png?resize=1050%2C600 3x"},"classes":[]},{"id":2568,"url":"https:\/\/code4developers.com\/angularjs-application-end-to-end-testing-with-protractor-tool-part-1\/","url_meta":{"origin":2658,"position":1},"title":"AngularJS Application End to End Testing with Protractor Tool : Part 1","author":"Sneha Jaiswal","date":"June 8, 2017","format":false,"excerpt":"What is End to End Testing? End to End Testing is used to determine the performance of application as per requirement. For large and complex applications manual testing is not sufficient to verify the correctness of new features, catch bugs and notice regression. To resolve issue of integration between components\u2026","rel":"","context":"In &quot;AngularJs&quot;","block_context":{"text":"AngularJs","link":"https:\/\/code4developers.com\/category\/angularjs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3544,"url":"https:\/\/code4developers.com\/angular-6-crud-part-1-project-setup-routing-service\/","url_meta":{"origin":2658,"position":2},"title":"Angular 6 CRUD \u2013 Part 1: Project Setup, Routing, Service","author":"Nisarg Dave","date":"May 9, 2018","format":false,"excerpt":"This article is Part 1 Angular 6 CRUD. In this article and upcoming article, we will discuss performing CRUD operations in Angular 6 i.e. Creating, Reading, Updating and Deleting in Angular 6 with simple examples. We will also discuss about the Angular 6 Project setup, apply Routing, create service to\u2026","rel":"","context":"In &quot;Angular&quot;","block_context":{"text":"Angular","link":"https:\/\/code4developers.com\/category\/angular\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/05\/json-server-call-300x297.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":12847,"url":"https:\/\/code4developers.com\/connect-firebase-database-and-angular-app\/","url_meta":{"origin":2658,"position":3},"title":"Connect Firebase Realtime NoSQL Database with Angular App from Scratch","author":"Arif Khoja","date":"August 30, 2020","format":false,"excerpt":"In this tutorial, We are going to learn\u00a0How to connect Firebase Realtime NoSQL cloud database with Angular app from scratch?. We\u2019ll be using\u00a0AngularFire library for setting up Firebase database in the Angular web application. Firebase is a Google product, It is a real-time NoSQL cloud database that allows you to\u2026","rel":"","context":"In &quot;Angular&quot;","block_context":{"text":"Angular","link":"https:\/\/code4developers.com\/category\/angular\/"},"img":{"alt_text":"connect-angular-firebase","src":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2020\/08\/connect-angular-firebase.jpg?fit=715%2C350&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2020\/08\/connect-angular-firebase.jpg?fit=715%2C350&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2020\/08\/connect-angular-firebase.jpg?fit=715%2C350&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2020\/08\/connect-angular-firebase.jpg?fit=715%2C350&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3886,"url":"https:\/\/code4developers.com\/getting-started-with-miscrosoft-visual-studio-code\/","url_meta":{"origin":2658,"position":4},"title":"Getting Started with Miscrosoft Visual Studio Code","author":"Pawan Ingale","date":"August 27, 2018","format":false,"excerpt":"The Visual Studio Code integrated development environment is a creative launching pad, that you can use to edit, debug, and build code, and then publish an app. VS Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, MacOS and Linux.\u2026","rel":"","context":"In &quot;Visual Studio&quot;","block_context":{"text":"Visual Studio","link":"https:\/\/code4developers.com\/category\/visual-studio\/"},"img":{"alt_text":"VS Code","src":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/08\/opengraph-blog-1.png?fit=1200%2C618&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/08\/opengraph-blog-1.png?fit=1200%2C618&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/08\/opengraph-blog-1.png?fit=1200%2C618&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/08\/opengraph-blog-1.png?fit=1200%2C618&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/08\/opengraph-blog-1.png?fit=1200%2C618&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3376,"url":"https:\/\/code4developers.com\/ionic-project-structure-installation\/","url_meta":{"origin":2658,"position":5},"title":"Ionic Project Structure and Installation","author":"Pratik Maniar","date":"April 1, 2018","format":false,"excerpt":"Ionic is a framework for web developers to develop a mobile application. It is used to create an hybrid application which works as an native apps. Using Ionic we can build mobile, web, and desktop applications with one shared code. In this getting started with Ionic article we will talk\u2026","rel":"","context":"In &quot;Ionic&quot;","block_context":{"text":"Ionic","link":"https:\/\/code4developers.com\/category\/ionic\/"},"img":{"alt_text":"Ionic","src":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/03\/Ionic-And-its-Tools-in-Brief-scaled.jpg?fit=1200%2C775&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/03\/Ionic-And-its-Tools-in-Brief-scaled.jpg?fit=1200%2C775&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/03\/Ionic-And-its-Tools-in-Brief-scaled.jpg?fit=1200%2C775&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/03\/Ionic-And-its-Tools-in-Brief-scaled.jpg?fit=1200%2C775&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/code4developers.com\/wp-content\/uploads\/2018\/03\/Ionic-And-its-Tools-in-Brief-scaled.jpg?fit=1200%2C775&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/posts\/2658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/comments?post=2658"}],"version-history":[{"count":3,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/posts\/2658\/revisions"}],"predecessor-version":[{"id":2660,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/posts\/2658\/revisions\/2660"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/media\/2649"}],"wp:attachment":[{"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/media?parent=2658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/categories?post=2658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/tags?post=2658"},{"taxonomy":"powerkit_post_featured","embeddable":true,"href":"https:\/\/code4developers.com\/wp-json\/wp\/v2\/powerkit_post_featured?post=2658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}