In previous post we tried to create module, component and routing. Lets look into how to add third party libraries.
You could check out the code from here. git checkout -b part3.0 origin/part3.0
In Angular4 adding third party libraries is pretty easy. Install using npm and add the module. Its one of my most loved feature in Angular4.
PrimeNG PrimeNG is one of the most used and most popular Angular4 library. It consists lot of components and its easy to setup and use. Besides it does have a good team working behind this library. In my experience it's one of the fast developing library.
To install PrimeNg run
npm install primeng --save npm install font-awesome --save
PrimeNg needs font awesome for icons . Unlike any other libraries , PrimeNG had separate module for each component, which helps to include only selected component in the bundle.
Lets include styles for the components. In .angular-cli.json add
As i told earlier am trying to switch to Flex , i am trying to learn connection between PHP and Flex. When searched i got a excellent tutorial . But the problem is that it uses PostgreSQL. As i don't have any prior experience in PostgreSQL i try to install it in my Windows 7 and configure it in WAMP . I got different errors and spend almost two days in searching and using different methods . Atlast i got it right. I will try to figure out the steps i have done.
Am using PostgreSQL 9.1WAMP Server 2.0e phpPgAdmin 5.0.2
WAMP consists 1. Apache Version :2.2.17
2. PHP Version :5.3.5
3. MySQL Version :5.5.8
First install PostgreSQL , no need to install additional plugins like phpPgAdmin.
Install WAMP server where ever you need.
Download PhpPgAdmin and unzip it to WWW folder in WAMP installation.
At this point if you try to access the http://localhost/phpPgAdmin/ you may get this error.
Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgs…
Lets discuss about the application structure in a MEAN.js Application. Actually MEAN follows a MVC(Model-View-Controller). There are mainly two types of application structure for MVC.
1. Horizontal Folder Structure This type of structure follows the division on functional role rather than the feature.The files and folders will kept inside a application folder . There will be one controller folder for all application controllers. Horizontal structure is for simple projects where the features were limited. An example for this structure is
app folder consists of all the express.io files or the server side files. app/controllers folder holds all express controller logic. app/models folder holds the express model lo…
I don't know. Anyway i would like to share a small tip i came across when i am working with Android.
Android.. hmmm ... Sorry i just started to learn Android.
Like all other thing am experimenting with Android. First i just added 4 AVD and tried to make Fifth one and got an error. I just looked my partioion and found that C drive is almost full..
It's because the Android AVD is created normally in C:\Users\UserName\.android\avd and i am just giving every AVD a 5GB SDCARD also. What else ? :P
I searched google and found and solution . I just copied the .avd folder from C:\Users\UserName\.android\avd and just pasted it to another drive. And i also edited the configuration file of each AVD. Got the idea ? no?
Okay i have a AVD named "gingerbreadWVGA" . I would have a "gingerbreadWVGA.avd" and "gingerbreadWVGA" configuration file on "C:\Users\UserName\.android\avd\". I just cut and paste the &quo…
In the previous post we created a new Angular 4 project. Lets check the how to add modules, components and routing.
You could check out the code from here. git checkout -b part2.0 origin/part2.0
We are going to use bootstrap styling . So lets add bootstrap in our aplication . We are going to use only styling not the components.
npm install bootstrap@3
We need to add the bootstrap stylesheet in tha .angular-cli.json.
], Our first Module
Lets add a new module employee. Inside "src/app" run
ng generate module employee
ng g m employee
Wait we are going to lazy load this module , so we need routing inside the module, right? So we are going to create the routing also. ng g m employee --routing Time for component
It will create new employee module with its own routing.lets add a component for listing the employee. So inside employee folder run