Showing posts with label blog. Show all posts
Showing posts with label blog. Show all posts

Monday, 21 August 2017

Components in Angular2

INTRODUCTION:

Components are the core building block of Angular 2 applications. A good technical definition would be “components in Angular 2 are a framework construct that owns a single node of HTML and dictates what children are written to that node, and handle all interaction with those children”.

There is one root component called app.component. Then there are components and subcomponents. The following example will make it more clear:
Screenshot 2017-07-03 17.40.33
In this example app.component is the root component, header ,body and footer are its component and signup-login are subcomponents of body.

How to create a component:

Create a new file src/app folder with the name
<component_name>.component.ts
Eg – my-header.component.ts
In the file write the following:
Screenshot 2017-07-03 17.40.39
This is the basic structure of a component.
If you working with Angular CLI then write the following command in command prompt and your component will be created with the structure shown above:
Screenshot 2017-07-03 17.40.43

Explaining the structure of the component:

Component represents a reusable piece of UI that is usually depicted by a custom html element.It consists of the following –
  • Selector- the aforementioned html element which will match the element tag that identifies this
  • Template − This is used to render the view for the application. This contains the HTML that needs to be rendered in the application. This part also includes the binding and directives.
  • Class − This is like a class defined in any language such as C. This contains properties and methods. This has the code which is used to support the view. It is defined in TypeScript.
  • Metadata − This has the extra data defined for the Angular class. It is defined with a decorator.
Components are very helpful as they make our code more understandable to other person by dividing the whole structure into various parts.And we can reuse these components in different applications as well.
WHY IT CAME INTO EXISTENCE WHEN CONTROLLERS WERE ALREADY THERE:
A lot of changes are there in Angular 1 and Angular 2.And one stand-out feature change is the introduction of components. Angular 2 is entirely component based. Components and directives have replaced the controllers and $scope of Angular 1. Components are directives with a template.
Difference-betwee-Angular-1-vs-angular2
In Angular 1 we’d attach controllers to various parts of the page with our custom logic. Scopes would be attached or flow through, based on how our custom directives encapsulated themselves.In this model it wasn’t like any hierarchical structure. We’d just “attach” behaviors to various parts of our page and then have to deal with the complicated meta-structure created by our directives, controllers, and scopes.
To add logic to the page, we’d have to decide between building a controller or a custom directive.
Angular 2 drops all of this for a much cleaner, more object-oriented Component model.

Example of Controller in Angular 1 and Components in Angular 2 :

Angular 1 Controller:
Screenshot 2017-07-03 17.40.53
Angular 2 Components:
Screenshot 2017-07-03 17.40.59
This was all about Components.Try making a new component and learn more about it.
Keep learning.

Monday, 14 August 2017

Faster than expected - HyperLoop


hyperloopconcept.jpg

         



Whenever something comes into the market there is this one thing that let the occurrence and that is nothing but “Requirement or need”. Hyperloop is such one development in the industry of science and technology which dealt with the requirements.

Where it was started?

In year 2012, the renowned innovator Elon Musk released its first version which tells that some people will be travelling in capsules running on air bearings driven by motors and air compressors.
Like a spark, this ignites many minds and in year 2013, a paper on this concept was published which creates an idea of a hyperloop system that would propel passengers along the 350-mile (560 km) route at an average speed of around 600 mph (970 km/h), with a top speed of 760 mph (1,200 km/h), allowing for a travel time of 35 minutes, which is considerably faster than current rail or air travel times and after so many efforts from commercial companies and dozens of student teams,  on January 29, 2017, approximately one year after winning phase one of the Hyperloop pod competition, the MIT Hyperloop pod demonstrated the first ever low-pressure Hyperloop run in the world [credits : Wikipedia].
Oh, didn’t i tell you Why Hyperloop ?
Because it is fast, cheaper(after some initial phase, probably), safer, efficient, quiet. In short, it is WOW.
You will come to know why i am saying this, bear with me :D


So, what is this buzzword?




Because no one else can tell you better than Hyperloop One


Who is working on it?


Hyperloop one and Hyperloop transportation technologies are the two main leaders in this field for now, also some support is backed up by the addition of Arrivo chaired by ex-Hyperloop One CTO and ex-SpaceX engineer Brogan BamBrogan.
It doesn't ends here, Elon Musk runs a Hyperloop Challenge, where he welcomes students to his Hyperloop test lab in his SpaceX facility in Las Vegas.  .
This global challenge invites people from around the world to make a comprehensive commercial, or transport or can be economic related for their cities, regions or even countries which can be considered to host the first hyperloop networks. It’s not an engineering competition, they say : “we bring technology, you tell us how it should be used in your location”.
I hope you must be thinking when can i have one ride in this, but the answer is little disappointing, “we are really not sure” , But don’t be sad Musk track record of getting things done gives a ray of light to the Hyperloop project.
Hyperloop One lists a projected date of 2021 on its website for having “three production systems”, although what that means in terms of working transport is unclear. Hyperloop One chief executive Rob Lloyd has claimed that, following an agreement with Dubai, “from a technological point of view, we could have a Hyperloop One system built in the United Arab Emirates (UAE) in the next five years”.  So let's hope for the best and maybe some day a ride in hyper wouldn't be just a dream.
Source : techradar.com

--- Swapnil kumar & Sunil kumar

Sunday, 21 May 2017

THE PURSUIT OF PASSION

Dear Readers,

 Have you ever contemplated, what will you doing when you come out of your education? Have you ever thought about what your passion for life is? Or have you sacrificed your innate desire for want of a more “settled” life ahead because you have responsibilities of your family on your shoulders? Whatever the case may be, a cursory look into the most successful people in the world tells us that no one can do wonders unless he is passionate about what he is doing. Now in this Blog we are going to talk about Why, What and How to Pursue your passion.

Why To Pursue Your Passion?

“Don’t worry about what the world needs.  Ask what makes you come alive and do that, because what the world needs is people who have come alive.” ~Howard Thurman

If the quote above isn’t enough we are going to tell you here why you should pursue your desired passion,

Working for money may seem to be a good enough reason for someone to keep their career but it doesn’t come anywhere near to working for Happiness.

By following your passion, you can always relate to what you are doing and come up with better ideas every day.

You can escape the endless cycle of misery because nothing would feel like as if it is forced upon you.

When you really enjoy what you do, no obstacle will stop you from achieving success.

Last but not the least, you are going to invest a large portion of your lives into your jobs and careers, maybe do something that gives you contentment as well.


What To Do Pursue Your Passion?

Now after deciding Why, the next step is What to do to pursue your passion.

Do your complete homework. Be informed about the current market condition of employment, organizations, and typical path to employment in the field of your respective field of passion.

Before kissing goodbye to your current “comfort zone”, make sure to network yourself well in the field of your interest. Assemble a robust professional network beforehand.

Gather thorough knowledge about your field of interest.

If you don’t want to go into the realm of insanity frankly, keep a contingency plan ready.

How To Pursue Your Passion.

In this section, we’ll focus on how to convert above points into reality.

With all the knowledge you have gathered and homework you have done, chalk out a rough blueprint.

Internships can be a great opportunity to attain real life experience in the field of your interest. And for those of you who belong to CS/IT, we are currently providing internships in various fields, for more information click on the following link- https://goo.gl/HhZv4t.

Create a circle of people who share your passion for constant motivation and improvements.

Start meeting people, attending events, reading blogs and subscribe to industry publications early.

Be Patient, success doesn’t come straightaway you have to toil hard and consistently for results to be visible.

There will come the lowest points during the entire exercise. Ultimately how you handle these moments will ultimately determine your success.

Lastly, appreciate that you are getting a chance to live your dream that million others don’t. Make a steely resolve and overcome every obstacle that might come your way.

Hope you had a fruitful reading session. Will catch you soon.

-Avanish Pandey
Team Internity

Sunday, 14 May 2017

Time - key to success

We appreciate you for the "Time" you are going to spend on reading this blog. This blog is all about why we are focusing on this word is because how you will be successful.



We guess most of you want to be successful and you must be knowing what its like to be touching the failures in life. This blog is not going to discuss what exactly is the definition of time, but it’s more of a concern that ‘are we utilizing it the way we should’, are we hearing a “no”? We just heard you whispering a “no”. We at Internity believe that time is the most important factor for being a person of success. We believe in time management and we want you to believe the same, because if you move along with us putting a management of time as the tool for your daily working areas, you will definitely get into the doors of your vision. We are putting this blog to get an idea how we work at Internity to create a personality which can conquer the competitive world living aside.

Let’s focus on the deal we have, Time. Let’s go through a live example we dealt with, there was a person in our team who has skills, passion to thrive, can conquer the world, carry out his vision but he was lacking behind all these just because he forgot the most important factor, time. We were giving him the tasks, deadlines but he chose to do it late just because he was never managing those things in a way they should. What made him realize this when he got failed to carry out a campaign he was assigned to. He then realized that If I would have maintained my timeline of my tasks I do in my daily life, this might not have happened. And yes, he was right, you don’t have to spend a penny for this, you just have to go through the needs you have, the workloads you can manage, the bottlenecks that’s coming around, once you list them all, you will find a clear timeline for all the task that you carry out.

“Practice makes a man perfect”, the saying exists and works best for the purpose, once you start
practicing to be on the timeline you decided, even you yourself cannot let you to see backward in life,
that’s our bet on you. We recently started hiring interns and we are getting great responses from people around and we promise you to serve the best ever guidance which can lead you to an amazing future but what we need from you is a promise to practice the time management, if you make that happen, we’ll make sure that nothing comes as a hurdle in your life.

Hope you had a happy reading experience, will catch you soon.

-Swapnil Kumar