<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>angularjs Archives - Postnidea</title>
	<atom:link href="https://www.postnidea.com/category/angularjs/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.postnidea.com/category/angularjs/</link>
	<description>Programming Blog, Tutorials, jQuery, Ajax, PHP, MySQL and Demos</description>
	<lastBuildDate>Wed, 04 Sep 2019 05:20:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.8</generator>

<image>
	<url>https://www.postnidea.com/wp-content/uploads/2019/08/favicon.ico</url>
	<title>angularjs Archives - Postnidea</title>
	<link>https://www.postnidea.com/category/angularjs/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>angular 6 tutorial for routing and navigation</title>
		<link>https://www.postnidea.com/angular-6-tutorial-for-routing-and-navigation/</link>
					<comments>https://www.postnidea.com/angular-6-tutorial-for-routing-and-navigation/#respond</comments>
		
		<dc:creator><![CDATA[Rakesh Kumar]]></dc:creator>
		<pubDate>Wed, 22 Aug 2018 02:07:00 +0000</pubDate>
				<category><![CDATA[angular 6]]></category>
		<category><![CDATA[angularjs]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Angular]]></category>
		<category><![CDATA[angular 7 routing not working]]></category>
		<category><![CDATA[angular cli add routing]]></category>
		<category><![CDATA[angular navigation]]></category>
		<category><![CDATA[angular routing tutorial]]></category>
		<category><![CDATA[how angular routing works]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[router outlet angular 6]]></category>
		<category><![CDATA[Routing]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>Routing a very important part of any application. Routing is a way by which user can navigate your application. Routing [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.postnidea.com/angular-6-tutorial-for-routing-and-navigation/">angular 6 tutorial for routing and navigation</a> appeared first on <a rel="nofollow" href="https://www.postnidea.com">Postnidea</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div dir="ltr" style="text-align: left;">
<div dir="ltr" style="text-align: left;">
<p>Routing a very important part of any application. Routing is a way by which user can navigate your application. Routing is defined by the developer on which route what things need to serve towards client or user. On routing other hidden things also dependent like SEO &amp; feeds. So Bad routing can spoil you application &amp; leave a bad impression on the user. Different technology different way of routing. But front-end user experiences the same.</p>
<p>I have worked on PHP as well as the JS So, I can give the idea about two technologies. For PHP if you using any framework like Codeigniter, CakePHP they already have the option for routing. But If you create PHP application by using class structure then you can use already popular class Altorouter. I have so many options regarding the routing. For more information regarding Altorouter, you can click on the link.</p>
<p>For javascript I working on the angular. The angular has our library with the help of that Angular manage routing. Now today I will show you how angular 5 or angular 6 working. After starting of angular version 2 the angular start using typescript.</p>
<p>Now today I will show you how routing work in the angular 5 or angular 6. So for demonstrating routing in Angular 6, I have to create an application. So with the use of angular CLI tool, you can easily create a new project using the below command.</p>
<h2>Angular generate new application</h2>
<pre><code>ng new {application_name}  or ng new test112</code></pre>
</div>
<p>I create an application for you on your specified path and also install the required packages so that your application will work perfectly.<br />
I will take a few time so, wait with patience. Once your application created then type below command so that your application will open in the browser.</p>
<pre><code>ng serve --open</code></pre>
<p>Above command will compile your typescript and convert in js then compiler compiled thing serve to the browser. There is &#8211;open stand for open browser otherwise. The browser will need to open itself. Now created application working fine.</p>
<h2>Addition of new module in angular application</h2>
<p>Before starting anything few more module I need to install jquery, bootstrap which helps to create awsome UI Design.</p>
<pre><code>npm install bootstrap@3.3.7 jquery --save</code></pre>
<p>After successful installation, we need to add a path in the angular.json file like below which is exist on your application root.</p>
<pre><code>"styles": [
              "./node_modules/bootstrap/dist/css/bootstrap.min.css",
              "src/styles.css"
            ],
            "scripts": [
              "./node_modules/jquery/dist/jquery.js",
              "./node_modules/bootstrap/dist/js/bootstrap.js"
            ]
</code></pre>
<p>There is app.componet.ts already found in the app folder. Now we need to create three pages so that I show perfect routing navigation.<br />
So I will type below commands.</p>
<pre><code>ng generate component home
ng generate component about
ng generate component contact
</code></pre>
<p>Above commands will create three pages for your application. Now one file needs to create app.router.ts which is responsible to complete routing.  In this file, I have to import three ( ModuleWithProviders, Routes, RouterModule)modules which is below.</p>
<pre><code>import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
</code></pre>
<p>I also need to define create page component like below. So that I can include routes variable.</p>
<pre><code>import { HomeComponent } from './home/home.component';
import { AboutComponent } from './about/about.component';
import { ContactComponent } from './contact/contact.component';
</code></pre>
<h2>Addition of Routing file</h2>
<p>Now I have define a routes array. So that we can store all routes in this variable like below.</p>
<pre><code>export const routes: Routes =[
{path:'home', component: HomeComponent},
{path:'about', component: AboutComponent},
{path:'contact', component: ContactComponent},
];
</code></pre>
<p>export const routing : ModuleWithProviders = RouterModule.forRoot(routes);</p>
<p>Now app.router.ts file is ready finally add to app.module.ts &amp; import module routing using below code.</p>
<pre><code>import { routing } from './app.router';
imports: [
    BrowserModule,
    FormsModule,
    routing]
</code></pre>
<p>Now finally add the navigation to the app.component.html. So the code will look like below.</p>
<p>routerLink=&#8217;home&#8217; will generate the link for the home component &amp; &#8220;routerLinkActive&#8221; will add the active class on the active route.</p>
<p>One more thing needs to add the &lt;router-outlet&gt;&lt;/router-outlet&gt; so that all component will show their data in it.</p>
<p>Finally, you can view the output.</p>
<h2>Above code works in below video</h2>
<p><iframe src="https://www.youtube.com/embed/ljkhCvNwJQ4" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
<p><a class="btn btn-primary btn-blue" href="http://demo.postnidea.com/test112/" target="_blank" rel="noopener noreferrer">Demo</a> <a class="btn btn-primary btn-blue" href="https://github.com/postnidea/angular-6-tutorial-for-routing-and-navigation" target="_blank" rel="noopener noreferrer">code</a></p>
</div>
<p>The post <a rel="nofollow" href="https://www.postnidea.com/angular-6-tutorial-for-routing-and-navigation/">angular 6 tutorial for routing and navigation</a> appeared first on <a rel="nofollow" href="https://www.postnidea.com">Postnidea</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.postnidea.com/angular-6-tutorial-for-routing-and-navigation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>angularjs tree category menu</title>
		<link>https://www.postnidea.com/angularjs-tree-category-menu/</link>
					<comments>https://www.postnidea.com/angularjs-tree-category-menu/#respond</comments>
		
		<dc:creator><![CDATA[Rakesh Kumar]]></dc:creator>
		<pubDate>Sun, 20 Nov 2016 12:47:00 +0000</pubDate>
				<category><![CDATA[angularjs]]></category>
		<category><![CDATA[angularjs tree category menu]]></category>
		<category><![CDATA[angularjs tree menu]]></category>
		<category><![CDATA[agularjs menu]]></category>
		<category><![CDATA[angularjs category tree menu]]></category>
		<category><![CDATA[tree menu using php]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>In current web development mobile friendly app development very popular. Everyone want same application work on the desktop as well [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.postnidea.com/angularjs-tree-category-menu/">angularjs tree category menu</a> appeared first on <a rel="nofollow" href="https://www.postnidea.com">Postnidea</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div dir="ltr" style="text-align: left;">
<p>In current web development mobile friendly app development very popular. Everyone want same application work on the desktop as well as the mobile. So that he can save the cost of development. So Angular development more prominent because of same application work on the desktop as well mobile with a responsive feature. Bootstrap also help  the developer in the design section. So that the individual developer can complete their project. With this Bootstrap also provide an inbuilt function like pagination,filter, modal pop up, auto suggests etc.</p>
<p>Now days so much requirements raise of the e-commerce application development. In e-commerce application development important things are product,cart,order &amp; categories. Especially when you have 1000 of category then how to manage it. If you load all category at the same time then the speed of the application become slow which shows a bad impact on the customer or if you show less category then its show bad impact on the customer.</p>
<p>But angular have a great feature of template binding with the two-way feature. With the help of that, we can bind HTML with the database. So there is a need to service that provides a data in JSON format. For providing fast JSON data I used SLIM API services.  So When a user clicks on the menu then user Hit services that provide the JSON data that data bind with HTML &amp; render them. So on first loading only load parent category when user click on the category then extract their child same scenario you can manage thousands of category.</p>
<p><a href="http://demo.postnidea.com/angular-tree-menu/#/" target="_blank" rel="noopener noreferrer" class="btn btn-primary btn-blue">Demo</a> <a href="https://github.com/postnidea/angularjs-tree-menu" target="_blank" rel="noopener noreferrer" class="btn btn-primary btn-blue">code</a></p>
</div>
<p>The post <a rel="nofollow" href="https://www.postnidea.com/angularjs-tree-category-menu/">angularjs tree category menu</a> appeared first on <a rel="nofollow" href="https://www.postnidea.com">Postnidea</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.postnidea.com/angularjs-tree-category-menu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
