Thursday, October 5, 2017

Child routes in Angular Js 4

Child routes in Angular 4 :
The route can have a number of child routes of their components.A route is an array of Route. Route has various types of properties to maintain route for example path , component , outlet , children. To specify child route for a parent route, we use children property. The component speific to a child route will lie in the router outlet of the component which is related to the parent route of that child route. In the given example we have created a home as parent route and about as children routes,Import the required component to be routed. Write the following line of code in the routing file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<span style="font-size:16px;"><span style="font-family:arial,helvetica,sans-serif;">
import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AboutComponent } from './home.component';
import { HomeComponent } from './about.component';
import { AboutUserComponent } from './about-user.component';
import { AboutSectionComponent } from './about-section.component';
const homeRoutes: Routes = [
{
path: 'home',
component: HomeComponent,
children: [
{
path: '',
component: HomeComponentn
},
{
path: ':username',
component: AboutUserComponent
}
]
}
];
 
export const homeRouting: ModuleWithProviders = RouterModule.forChild(homeRoutes);
 
</span></span>
We have created the constant home routes, which is a array of component along with their path. this constant is passed in the child router module.

Thanks

Wednesday, October 4, 2017

Snapchat To Launch Augmented Reality Art Platform

Snapchat art platform
Last year, snapchat acquired an augmented startup called Cimagine. Using that, Snapchat is planning to launch its augmented reality art platform that will feature arts by some of the great artists like Jeff Koons and much more. The details about this augmented art platform are out and people want to more about it. With the art platform, users will be able to pin art to any specific location they want and they will be able to see it when they will keep their phones in the correct location. The feature will be introduced with the Koon’s art from around the world like Sydney, Paris and Las Vegas.


According to the reports, Snapchat is collaborating with the artists to publish their art pieces on snapchat’s augmented reality platform. Snapchat has also launched a countdown clock to 3 PM over a photo of the central park and New York's skyline on the site art.snapchat.com. Group of technical people have decoded the meaning of clock and found out it is related to CEO Evan Spiegel's talk a Vanity Fair’s New establishment summit. The feature can be used to create animations of whatever you see through the rear-facing camera. Snapchat is trying its best to compete Instagram and Facebook. After so much innovation, snapchat is still behind its competitors. 




The reason being is that they copy snapchat’s new features as soon as it launches them. By taking inspiration from facebook, Snapchat has launched the 3D world lenses which can be used for adding floating animations. The way it will work is still not clear for that we all have to wait for its launch. Snapchat has similar features as of Pokemon Go called geofilters. It lets its users unlock the filters to certain locations. When they will be near a piece of art, they will see lense. The lens indicted the availability of an art. 

Roku Unveils New Streaming Devices And An OS Update

Roku new devices
Roku unveiled its five streaming updates along with the new operating system. It has updated its streaming device lineup completely. Earlier we have seen updates in Apple as well as Amazon video streaming boxes and finally, Roku has joined the league.  Roku’s competitors, Apple and Amazon have made updates like 4K, new and improvised security, voice control and much more.


The company has finally rolled out a new operating system, known as OS 8 which brings out various features like over the air and over the top viewing, voice control, and much more exciting features. The new Roku boxes range have improved features are the affordable price. With the improved features, you will get the experience like never before. From the basic version to the 4K capable home entertainment, you will get it all. This is the biggest new for all the Roku fans.




The new device range includes Roku Express, Roku Express+, Roku Ultra, Roku Streaming Stick, Roku Streaming Stick+. The earlier products such as Roku Premiere and Roku Premiere+ are far behind now, after the launch of new devices. Last Year, the price of Roku Ultra dropped from $130 to $100. This year also, it stayed same even after its remote becomes 4K capable from the basic streaming stick.  The Roku Express+ has now analog component connection for those who have old televisions which costs $40 only. 


The Roku streaming sticks have the most interesting makeover which adds support for 802.11ac dual-band MIMO wireless. Without any change in the price, the processor is much faster now. It has got more features like Voice control functionality, volume and power button to control the volume of a TV. It now even has the wireless receiver which has much higher wifi range than the basic streaming stick. The basic streaming stick is now for $50, which now have voice controls.