NPM
If external library like jQuery is installed using NPM
npm install --save jquery
Add script path into your angular-cli.json
"scripts": [
"../node_modules/jquery/dist/jquery.js"
]
Assets Folder
You can also save the library file in your assets/js directory and in...
To use jquery in your Angular 2.x components, declare a global variable on the top
If using $ for jQuery
declare var $: any;
If using jQuery for jQuery
declare var jQuery: any
This will allow using $ or jQuery into your Angular 2.x component.
Install cordova using the following command npm install -g cordova.
Use cordova -version to check the cordova version.
Set path variables ANDROID_HOME and JAVA_HOME.
Example:
export ANDROID_HOME = /home/geethu/android-sdk-linux
export PATH = $PATH:$ANDROID_HOME/tools:$ANDROID_H...
The Stock Items screen (IN.20.25.00) is one of the most often used data entry forms of Acumatica ERP to export data. Inventory ID is the only primary key on the Stock Items screen:
To export records from a data entry form, your SOAP request must always begin with the ServiceCommands.Every[Key] co...
Redis provides two functions for removing keys from the database: del and unlink.
The del function removes one or more keys from the database. The del command causes Redis to immediately reclaim the memory for the deleted key on the current thread of execution. The execution time for del is propo...
To create a new project ng new [project-name] which initializes git.Install packages for tooling via npm. It creates the project successfully.
cd [project-name] and execute either npm start or ng serve
It'll run the server in the given default port.
Application will refresh according to the chan...
Go to terminal,
cd projectFolder
git remote -v (it will show previous git url)
git remote set-url origin https://[email protected]/username/newName.git
git remote -v (double check, it will show new git url)
git push (do whatever you want.)
Currying is the process of transforming a function that takes multiple arguments into a sequence of functions that each has only a single parameter. Currying is related to, but not the same as, partial application.
Let's consider the following function in JavaScript:
var add = (x, y) => x + y
...
We injecting the module in the application
var Registration=angular.module("myApp",["ngRoute"]);
now we use $routeProvider from "ngRoute"
Registration.config(function($routeProvider) {
});
finally we integrating the route, we define "/ad...
A single line comment starts with two hyphens (--) and extends up to the end of the line. Example :
-- This process models the state register
process(clock, aresetn)
begin
if aresetn = '0' then -- Active low, asynchronous reset
state <= IDLE;
elsif rising_edge(clock) then --...
Redis provides three commands to count the items within a sorted set: ZCARD, ZCOUNT, ZLEXCOUNT.
The ZCARD command is the basic test for the cardinality of a set. (It is analogous to the SCARD command for sets.) . ZCARD returns the count of the members of a set.
Executing the following code to add...
Pointers are variables that store the address of another variable.As language feature they are available in several programming languages like, but not limited to :
Go
C/C++
Ada
Pascal
C# (available under certain constraints)
COBOL
FORTRAN
To get started with C/C++ pointers , follow thes...
If you do not only wish to display static objects, but have your UI respond to changes to correlating objects, you need to understand the basics of the INotifyPropertyChanged interface.
Assuming we have our MainWindowdefined as
<Window x:Class="Application.MainWindow"
xmlns="...
As you may have noticed in the example above, we are rewriting the same step multiple times:
Given the user is on the login page
This can be exceptionally tedious, especially if we have more than one given step that is reused. Gherkin provides a solution for this by giving us another keyword to ...
For the purposes of documentation, you may want to filter test plans or scenarios by categories. Developers may want to run tests based on those same categories. Gherkin allows you to categorize Features as well as individual Scenarios via the user of Tags. In the example below, notice the above the...
Since Bootstrap 4 is a major rewrite, many of the Bootstrap 3.x class names have changed or been removed. The restructuring of components such as the Navbar, and the introduction of new CSS classes and Flexbox support means that upgrading to 4.x is not a simple conversion process from 3.x.
However,...