Tag:new people

  • Use controlleras instead of $scope

    Time:2021-1-19

    What did controllers do When we define a route .state(‘account.register’, { url: ‘/register’, templateUrl: ‘app/account/register.html’, controller: ‘RegisterCtrl’, controllrtAs: ‘vm’ }) In the angular source code: locals.$scope[state.controllerAs] = controllerInstance; It can be found that angular takes the instance of the controller as an object property named by the value of controlleras in $scope.We useBatarangCheck it out […]

  • Ruffian scale embedded: several suggestions on how to consult the master effectively in the workplace

    Time:2020-11-5

    –The stone rockery of Suzhou Museum Hello, everyone. I’m a ruffian. I’m a real technical ruffian. Today, ruffian Heng doesn’t talk about technology. He talks with everyone casually. In recent years, with the deepening of his qualifications (accompanied by the decrease of his distribution), he has also brought many fresh students / interns. At the […]

  • Zepto source code learning (4)

    Time:2020-5-16

    Recently, I started to learn zepto source code, share it and learn together. Front end newcomer, poor technology, forgive me a lotReference gitbook addressThank you for your contribution CSS selector of zeptozepto.qsa We all know, a lot of times, we use$To get the DOM objectzepto.qsaIt has a lot to do with it. Get selector [0]If […]