Wednesday, February 19, 2014

Learning Angular 1 month

In the website thegospelevent.com, I created google maps by using JQuery, the problem is: In the detail page, the google map did not show "Zoom toolbar", when I refreshed several times, the "Zoom toolbar" will show. so I am using Angularjs, it works like charm.

 *Notes:
 angular.element(document).ready(function () {
    angular.bootstrap($("#appElement"), ['myApp']);
        //// appElement is the html element on which you define ng-app, myApp is the name of the app
 });

 For jquery :
       $(document).ready(function (){ });

No comments:

Post a Comment