Showing posts from May, 2016
By default, AngularJS will route URLs with a hashtag like below- For Example: http://example.com/ http://example.com/#/about http://example.com/#/contact It is very easy to get clean URLs and remove the hash tag from the URL. There…
I am working with the session today in my current node js project. Actually i am creating a login page where i need to save user data in session and display him successfully logged in page. First of all you need to install express node module "…
When i run my mongo db from below command C:\mongodb\bin\mongod Then i shown an error " Deleted data files in C:\data\db\ crated by the 'mmapv1' storage engine, so setting the active storage engine to 'mmapv1' Unclean sh…
Today i have a requirement in my node js project to do pdf password protect. So any one open that pdf he must be enter password then he can view the pdf content. I am doing a lots of googling but i didn't get the proper solution of it. There is n…
Today i am facing a very strange problem in angular js. Actually i am working on a form there a many different types of input like text, number, radio , select etc. I am also putting an input type= "number" to store only numeric values l…
Today i am working on to send email using angular and node js. After googling alot finally i found a node module Node Mailer . Its a very nice module of node you can also send email via smtp by doing a very small configuration. In my below code i am …
If you want to update a record in mongo db by "_id". Suppose below is a collection(table) with name "ceo" . So now you want to update name "Karm Khanna" with "Salman Ahmad" So now the update query will b…
I have created a function which is use to get date by the day and position in javascript. Actually my requirenment is when i passed day and its position then i got the date. To fullfil my requirenment i just created a function below. For Example :…