Posts

Showing posts from May, 2017

upload mysql heavy database code

place the database in this path  C:\xampp\mysql\ Open commend prompt, write below commend C:\xampp\mysql\bin>mysql -u root -p databasename < C:\xampp\mysql\ databasename .sql

Remove youtube thumbnails and share social icons

once you embedded youtube video https://www.youtube.com/embed/vP0P9-o3gh0 Add below code for Remove the social share and thumbnail. ?wmode=opaque&amp;rel=0&amp;autohide=1&amp;showinfo=0&amp;wmode=transparent <iframe width="960" height="600" src="https://www.youtube.com/embed/vP0P9-o3gh0?wmode=opaque&amp;rel=0&amp;autohide=1&amp;showinfo=0&amp;wmode=transparent" frameborder="0" allowfullscreen></iframe>

Angular Performance Tips

Optimize ng-repeat // don't do this <div ng-repeat="item in myLongList"> {{ item.property }} </div> // use track by! <div ng-repeat="item in myLongList track by item.id"> {{ item.property }} </div> What does track by actually do? When myLongList is re-rendered, Angular does not have to rebuild an element which has already been rendered. This speeds up the cycle and avoids useless DOM manipulation. Filters are something to also be avoided as much as possible when using within a loop. ng-bind is better than {{}} like this : <div> Hello, {{variable}} </div> This means that the whole text "Hello, {{variable}}" enclosed by < div > will be copied and stored in memory . If you do something like this : <div> Hello, <span ng-bind="variable"></span> </div> That will only stored the value of variable in memory , angular will register a watcher where th...