What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-03-01 23:35:28
create and use constants in angularjs
// Storing a single constant value var app = angular.module('myApp', []); app.constant('appName', 'My App'); // Now we inject our constant value into a test controller app.controller('TestCtrl', ['appName', function TestCtrl(appName) { console.log(a... Add solution -
Other 2022-02-25 01:30:06
include path of angular js and bootstrap
<!DOCTYPE html><html> <head> <!-- JS --> <!-- JQuery --> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <!-- Bo... Add solution -
Shell/Bash 2022-01-26 17:56:34
install bootstrap in angular 10
# From project directory: npm install --save bootstrap npm install --save jquery # Now edit `angular.json` # Position: `projects -> architect -> build -> options` # To `styles`, add "node_modules/bootstrap/dist/css/bootstrap.css" # To ... Add solution -
Javascript 2022-01-22 05:00:01
fontawesome angular
//install in your project directory npm install --save @fortawesome/fontawesome-free // in angular.json add in the 'build' section the following lines in 'styles' and 'scripts' "styles": [ "node_modules/@fortawesome/fontawesome-... Add solution -
Javascript 2021-11-16 01:30:23
angular access current scope from console
angular.element($0).scope() Add solution -
Javascript 2021-11-15 11:48:23
js deep copy array
var sheep=[ {"height":20,"name":"Melvin"}, {"height":18,"name":"Betsy"} ]; var clonedSheep=JSON.parse(JSON.stringify(sheep)); //clone array of objects //note: cloning like this will not work... Add solution -
TypeScript 2021-11-15 01:32:16
install aos angular 10
//install npm install aos --save //inside the angular.json inside of 'build', look for the 'styles' and 'scripts' //inside them add: styles: [... "node_modules/aos/dist/aos.css"] scripts: [... "node_modules/aos/dist/aos.js"] //to add ... Add solution