No matter what, go straight ahead, is the most relaxed feeling.
Recently read the book. Haha, concentrate, can be a week a book it. I ask not high ~ ~:)
<!DOCTYPE HTML><HTMLLang= "en"Ng-app= "App"> <Head> <MetaCharSet= "Utf-8"> <Metahttp-equiv= "X-ua-compatible"content= "Ie=edge"> <title>Data Binding Example</title> </Head> <BodyNg-controller= "Main"> <inputtype= "text"Ng-model= "FirstName"placeholder= "First Name"> <inputtype= "text"Ng-model= "LastName"placeholder= "Last Name"> <Buttonng-disabled="! (Firstname.length && lastname.length) "Ng-click= "Add ()">Add</Button> <Table> <TRng-repeat= "P in Presidents"> <TD>{{P.first}}</TD> <TD>{{P.last}}</TD> <TD> <ButtonNg-click= "$parent. Remove (p)">Remove</Button></TD> </TR> </Table> <H2>Gender {{Gender}}</H2> <inputtype= "Radio"Ng-model= "Gender"value= "Male"Ng-click= "Style={color: ' Red '}">Male<inputtype= "Radio"Ng-model= "Gender"value= "female"Ng-click= "Style={color: ' Green '}">Female<BR/> <H2Ng-style=style>Welcome {{firstName + ' + LastName}}</H2> <Buttonng-disabled="! (Firstname.length && lastname.length && gender.length) "Ng-click= "Signup ()">Sign Up</Button> <Scriptsrc= "Js/angular.min.js"></Script> <Script> varapp=Angular.module ("app", []); App.controller ("Main", ['$scope', function($scope) {$scope. FirstName=$scope. LastName= "'; $scope. Presidents=[{First:'Abraham', Last:'Lincoln'}, {first:'Andrew', Last:'Johnson'}, {first:'Ulysses', Last:'Grant' }]; $scope. Add= function() {$scope. Presidents.push ({first: $scope. FirstName, Last: $scope. lastName} ); $scope. FirstName=$scope. LastName= "'; }; $scope. Remove= function(President) {$scope. Presidents.splice ($scope. Presidents.indexof (President),1); }; $scope. Gender= 'female'; $scope. Style={color:'Orange'}; $scope. Signup= function() { var Person={first: $scope. FirstName, Last: $scope. LastName, Gender: $scope. Gender} Console.log (person); }; }]); </Script> </Body></HTML>
Learning new things, is constantly reading a book, until read, or continue to look at new books, and every book you want to know the east?