Answers for "angularjs library"

2

angularjs cdn

<!doctype html>
<html ng-app>
  <head>
    <title>My AngularJS App</title>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
  </head>
  <body>
  </body>
</html>
Posted by: Guest on June-20-2020
3

anjular js

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.9/angular.min.js"></script>
Posted by: Guest on June-01-2020
0

angular library

#First create your Angular library
$ ng new my-workspace --create-application=false
$ cd my-workspace
$ ng generate library my-lib

#In order to use it in a project you have to build it first
$ ng build my-lib --configuration development
$ ng test my-lib
$ ng lint my-lib

#And then import in the app:
import { myExport } from 'my-lib';

#You can also publish it as a npm package
$ ng build my-lib
$ cd dist/my-lib
$ npm publish
Posted by: Guest on June-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language