$stateChangeStart
> $stateChangeSuccess
> controller is loaded
> $ionicView.beforeEnter
> $ionicView.enter
> $ionicView.afterEnter
compile
is used for transforming template,link
is used after template is cloned- If
compile
is existing,link
is not effect (be not called)- If
compile
return object, order of functions are called:compile > controller > pre > post
- If
compile
return function (post-link
), is equivalent tolink
function, order of functions are called:compile > controller > post
- If
- If
compile
is ommitted,controller > link
ALgorithm | Length (bytes, characters) |
---|---|
MD5 | 32 |
SHA1 | 40 |
SHA256 | 64 |
SHA512 | 128 |
For the visual learners like myself....
this:
<div ng-messages="requestForm.email.$error" ng-messages-include="form-messages"></div>
now needs to be:
$scope.content = "<b>bold</b> text";
- With
<div>{{content}}</div>
will output text content
- You want to create a login form, you need get username & password from html inputs when user click login button, code should like that
<!-- html code, view-->
<div class="list">
<label class="item item-input">
<input type="text" placeholder="Username" ng-model="user.username">
</label>
<label class="item item-input">
<input type="password" placeholder="Password" ng-model="user.password">
Because wordpress call wp_magic_quotes()
to add slashes before we use $_POST or $_GET ($_REQUEST), so if you save data from $_POST or $_GET ($_REQUEST) in wordpress,
- single value, do
$username = stripslashes($_POST['username'])
- or all of values, do
$_POST = stripslashes_deep($_POST);