Skip to main content

Posts

Angular 4 are now released and available for install and upgrade

Angular 4 has been released and now available for download, it is a major release after 2.x.x and it is backward compatible with 2.x.x. What is new in Angular 4 Angular 4 is smaller and faster than 2.x.x version as per the official post by angular over all its reduce by 60% of the size of the generated component code. Animation package has been taken out from @angular/core and bundled inside their own package. So if anyone not using the animation then it reduces the size of your package. However, animation can be added by importing the BrowserAnimationsModule from @angular/platform-browser/animations to your main NgModule. There are many more features which have been updated in the Angular 4 you can check out more here . How to upgrade to Angular 4 For updating to angular 4 follow the below steps. On Linux/Mac: npm install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@latest typescript@latest --save O...

Create Your First Angular App and Directory Structure of Project

Angular is best suited for Single Page App (SPA), for getting started with Angular we need to set up the development environment first. So for setting the development for Angular please check out the earlier post for same for Getting Started with  Angular. 1.Create a Project in Angular For creating the project into angular using angular CLI is very easy, so open a terminal and execute the below command to create the new project. ng new FirstApp Wait for some time above command will create the new project along with complete project hierarchy and structure of an Angular project, we required for developing our first SPA app in angular. Make sure you are connected to the Internet before using the above command because above command download some package and dependency from GitHub. The output of the above command will look like as given below. create . editorconfig create README . md create src\app\app . component . css create src\app\app . component . html create src\app\app . c...

Scan and List All Available WiFi Network In Android

In this tutorial, we learn how to connect to a WiFi hotspot in android by code. In this Demo we will create an as small app which will scan the all available network or Hotspot and list down the network when you select specific network, the application will connect that particular network. You May Like Below Topic: How to Read and Write JSON data using GSON WP Android App using REST and volley WP Android App using REST and volley part2 Implementation of SwipeRefreshLayout in RecyclerView Create Amazing Bottom Navigation Bar Without Any External Library Introduction In this tutorial, we learn how to connect to a WiFi hotspot in android by code. In this Demo we will create an as small app which will scan the all available network or Hotspot and list down the network when you select specific network, the application will connect that particular network. We will add this functionality to our existing Demo app " Video Gallery ". If you would like to check out t...

Responsive Layout In Android Using Constraint Layout

Create Responsive UI with Constraint Layout, this layout enables us to create a large and complex UI hierarchy in flat view, a major advantage of this layout is that we no longer required nested view group. It is similar to relative layout but more flexible than Relative Layout and you can design the layout with Android Studio Layout Editor very easily. So here is the tutorial to create the flat user interface using Constraint Layout. 1. Introduction ConstraintLayout is available in API library and it is compatible with  API level 9 and upper version. Its design technique is well supported in Android Studio Layout Editor. Using Android Studio Layout Editor you can create the beautiful layout design by just using the drag and drop rather than writing the complete code in XML files. So, in simple word, we can say that we can create flat, flexible layout with this Layout. 2. Add ConstraintLayout dependency to project For adding the constraintLayout to your project we need to flow the belo...

Create Amazing Bottom Navigation Bar In Android

Google has added the Bottom Navigation menu to Google Support Library. Bottom navigation bars make it easy to switch between the view within a single layout. As per material design guidelines , now we can add it using a standard library. In this article, I will explain how to add the bottom navigation bar to the android app. As per material design guideline, bottom navigation bar should be used where we need to use 3 to 5 menu item.  More than that menu item is not recommended for the bottom navigation bar. If you would like to know more about bottom navigation bar recommendation you can check on material design website here . 1. Introduction In this tutorial, we are going to create an app to show how to use and implement the Bottom Navigation Bar in Android. We will create two fragments with different kind of content and view which will be changed as you touch the tab from Bottom Navigation Bar. 2. Create the project for Bottom Navigation Bar with Activity So creating the project Go T...

How to install angular on Linux and Windows

Angular is a framework to build a client-side web application in HTML or javascript and Typescript. So here are steps to install the angular in Linux environment, in this example, I am installing angular on ubuntu distro but same can be used along with other distros as well. Step 1. What is the pre-requesting to install the Angular? Before installation of Angular, you should install the Node.js and Node package Manager ( npm ). So check the installation of Node.js and npm. Use below command check the version of  Node.js, installed version should be at least 4.0.0. $ node - v v7 . 6.0 Use below command to get the version of Node Package Manager (npm) it should be at least 3.0.0 $ npm - v 4.1 . 2 If you are getting node or npm command not found the error,  that means Node.js not installed on your machine. So for installation of Node.js and npm check out our earlier tutorial about how to install Node.js on Linux . For installation of Node.js on windows machine download the Node.js ...

Nodejs and npm installation on linux and Windows

Nodejs is the JavaScript runtime build on   Chrome's open source v8 Java Script engine . The question is that why we should use Nodejs? Of course without knowing the reason of using the Node.js why anyone use, so the answer is very simple Node.js is the event based ecosystem, none blocking Input/Output that makes it lightweight and fast. Node.js ecosystem that is NPM is the world largest collection of open source. What is the npm? Answer of this question it is the package manager for java script. Below is the steps to install the Nodejs and npm installation on Linux Ubntu 16.4. Step 1. Installing the NodeSource Nodejs v7.x repo pawan@pawan:~/Desktop$ curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -   pawan@pawan:~/Desktop$ sudo apt-get install nodejs Step 3. Check the installed version of Node.js pawan@pawan:~/Desktop$ nodejs -v v7.6.0 Step 4.Check installed version of npm pawan@pawan:~/Desktop$ npm -v 4.1.2   Step 5. Create the Node.js HTTP server to test the i...