1 2 3 4 5 |
// using string <div ng-if='results.dataType === "textTable"'> This text belongs in a table.</div> // using integer <div ng-if='results.dataType > 0'> This text belongs in a table.</div> |
ng generate module modulename
1 |
ng generate module dir/componenetname-routing --flat --module=app |
1 |
ng generate component componentname |
for pre component
1 |
ng generate component dirname/componentname |
short code
1 |
ng g c componentname |
Then install the Angular CLI globally.
1 |
npm install -g @angular/cli |
Step 2. Create a new project
Open a terminal window.
Generate a new project and default app by running the following command:
1 |
ng new my-app |
The Angular CLI installs the necessary npm packages, creates the project files, and populates the project with a simple default app. This can take some time.
Step 3: Serve the application
Go to the project directory and launch the server.
1 2 |
cd my-app ng serve --open |
1 2 3 4 |
function add_last_nav_item($items) { return $items .= '<li><a href="#myModal" role="button" data-toggle="modal">Contact</a></li>'; } add_filter('wp_nav_menu_items','add_last_nav_item'); |
1 2 3 4 5 6 7 8 9 |
add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position ); |
using icon url
1 2 3 4 5 6 7 8 9 10 |
$url = plugin_dir_url( __FILE__ ); add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $url."icon... |
Create a link in /var/www
like this:
sudo ln -s /usr/share/phpmyadmin /var/www/
Note: since 14.04 you may want to use /var/www/html/
instead of /var/www/
If that’s not working for you, you need to include PHPMyAdmin inside apache configuration.
Modifying the PHP Configuration
The php.ini
file can be edited to change the settings and configuration of how PHP functions. This section gives a few common examples.
Sometimes a PHP application might need to allow for larger upload files such as uploading themes and plugins on a WordPress site. To allow larger uploads for your PHP application, edit the php.ini
file with the following command (Change the path and file to match your Loaded Configuration File. This example shows the path for Apache on Ubuntu 14.04.):
1 |
- sudo nano /etc/php5/apache2/php.ini
1 |
The default lines that control the file size upload are:
1 2 3 4 |
$( "#tagID" ).click(function(e) { e.preventDefault(); return false; }); |