Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 1.21 KB

lesson6.md

File metadata and controls

37 lines (34 loc) · 1.21 KB

#Go over

  1. SenchaMVC

  2. Hack http://www.zolo.ca/vaughan-real-estate/28-thomson-creek-boulevard

  3. Debug

     function notifyLoginSuccess(resolve, result) {
       if(angular.isDefined(result.license))
         $localStorage.licenseCode= result.license;
       if(angular.isDefined(result.fl))
         $localStorage.flag = result.fl;
       if(angular.isDefined(result.fl2))
         $localStorage.flag2 = result.fl2;
       if(angular.isDefined(result.pr))
         $localStorage.privilege = result.pr;
       if(angular.isDefined(result.pr2))
         $localStorage.privilege2 = result.pr2;
       UserService.set(result);
       LicenseService.set(result.license);
    
       resolve(UserService.get());
       $rootScope.$broadcast('loggedIn', UserService.get());
       if(credentials && credentials.password && credentials.password.slice(0, 3) == 'tmp') {
         open('changePassword')();
       }
     }
    

#New

  1. ExtJS
    1. Form validation
    2. set/get value
  2. AngularJS
    1. MVC
    2. module
    3. dependency injection
    4. callback
    5. deferred/promise pattern
    6. two-way data biding