Hello friend to i am going to share How To Build Modern Web Application with MEAN (Part II). In have share How to install MEANJS stack. By using MEAN stack you can build a real-world application and will get you started your apps very quickly.

Below is a basic list of things i want my users to do using MEAN. In bellow example i will explain how to create a simple application to add posts.

MEAN-application
Adding Some Style
Getting Started

Start creating app, create index.html which will look like this. With bellow several lines of code, we have set up a new AngularJS application.

Getting User Input

Now i am going to create a form which will get user input. To do this, first we need to add a function to $scope variable.

Create a simple submit button which will executes addPost $scope function using the ng-click directive.

Create addPost.html page and add bellow code snippets.

Craete a aap.js file and add bellow code.

Adding Some Style

You can also add some style inf your angular apps by using some basic Bootstrap styling. Now change your index.html file to include Twitter Bootstrap along with a new form layout.

Thank you for giving time on freewebmentor community. Please don’t forget to subscribe our newsletter or join us on Facebook to be the first to learn the next great thing from freewebmentor.