PageSourceSearch

https://app.menucontrol.com.br/directives/new_ingredient/new_ingredient.js

js menucontrol.com.br collected 2026-10-05 23:46:10 UTC 715 bytes, 27 lines download raw bytes

1app.directive("newIngredient", function($modal) {
2  return {
3    restrict: "E",
4    transclude: true,
5    scope: {
6      ingredientType: "=",
7      nameSuggestion: "="
8    },
9    templateUrl: "directives/new_ingredient/new_ingredient.html",
10    link: function(scope) {
11      scope.openNewIngredientModal = function() {
12        $modal.open({
13          templateUrl: "views/ingredients/modal_form.html",
14          controller: "ingredients_new_modal_form",
15          resolve: {
16            ingredient_type: function() {
17              return scope.ingredient_type
18            },
19            name_sugestion: function() {
20              return scope.nameSuggestion
21            }
22          }
23        })
24      }
25    }
26  }
27})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.