We have to add a Provider which can be used to make an HTTP request to an API. In order to create a Provider run the following in the root of the Ionic project,
When Access-Control-Allow-Origin error raised when a resource is accessed from external URL use an allow by editing the .htaccess from file
How to print the iteration count in *ngFor at an AngularJS view, This can be done using index,..
Adding a page in Ionic 2 is quite simple, use the following command, where, codeexpertz is the page name. Once this is run, a folder "codeexpertz" will be created under pages folder, which contains following three files.
The currency field only accepts numeric values with decimal point of two digits. Below is the JQuery code to validate normal textfield as Currency field, will accepts only numbers and dot followed by two digits.
The below is the sample code in JQuery used for making Textfield only allow numeric values.
In Drupal we can specify the user role wise permission for access specific fields value create, edit and delete. This can be achieved by calling the fuction "user_access()" from user core module. This function accepts permission string and user object to check. The function return boolean value TRUE is user has permission else FALSE. Below is the syntax and sample code to use user_access() function.
The Inline entity form is the Drupal Contribute module. Which help to embed a entity form into another entity. Example: Commerce product add form cam be used in Node form. This module will help to create, update and delete entity based on its parent entity. This module embed entity form as the object to its parent form. To alter this specific entity form there is hook called hook_inline_entity_form_entity_form_alter(). Below is the syntax and example to usage of hook_inline_entity_form_entity_form_alter() to alter inline forms.
For Drupal forms we can add Field Groups. These field groups are commonly HTML element, Div, HTML5, Fieldset, Vertical tabs group, Vertical tab, Horizontal tabs group, Horizontal tab, Multipage group, Multipage, Accordion group, Accordion item, Multiple fields container, Multiple fields table and Multiple fields as label-value. We can able to hide Field Groups in Form alter by different methods. Below are some types to hide the Field Groups.