Input handling is an important part of application development. The ng-model directive provided in Angular 1 is a great way to manage input, but we think we can do better. The new Angular Forms module is easier to use and reason about than ng-model,…
https://www.pluralsight.com/guides/angular-event-binding Introduction In this guide, we will explore on the topic of event binding in Angular. Event binding will help to build interactive web applications with the flow of data from component to the e…
如果想在某个属性发生变化的时候执行某些操作,那么scope.$watch是最佳选择 https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$watch //如果是中文... $rootScope.$watch('session', function() { if ($rootScope.session) { var re = /[\u4e00-\u9fa5]/; if (re.test($rootScope.session.last_na…